fun getAsync(nodeId: PublicKey): AsyncResult<Peer>
(source)
Overrides PeerRepository.getAsync
Get a peer.
Return
the peer
fun getAsync(uri: URI): AsyncResult<Peer>
(source)
Overrides PeerRepository.getAsync
Get a Peer based on a URI.
The returned peer will use the endpoint from the URI, unless the peer is already active, in which case its endpoint will be unchanged.
IllegalArgumentException
- if the URI is not a valid enode URI
Return
the peer
fun getAsync(uri: String): AsyncResult<Peer>
(source)
Overrides PeerRepository.getAsync
Get a Peer based on a URI string.
The returned peer will use the endpoint from the URI, unless the peer is already active, in which case its endpoint will be unchanged.
IllegalArgumentException
- if the URI is not a valid enode URI
Return
the peer