public class DistributedRelay extends Object
| Constructor and Description |
|---|
DistributedRelay(Peer peer,
RelayRPC relayRPC,
int failedRelayWaitTime) |
| Modifier and Type | Method and Description |
|---|---|
DistributedRelay |
addRelayListener(RelayListener relayListener) |
Collection<PeerConnection> |
relayAddresses()
Returns addresses of current relay peers
|
FutureRelay |
setupRelays(FutureRelay futureRelay,
Collection<PeerAddress> relays,
int successRelays,
int maxFail)
Sets up relay connections to other peers.
|
FutureForkJoin<FutureDone<Void>> |
shutdown() |
public Collection<PeerConnection> relayAddresses()
public DistributedRelay addRelayListener(RelayListener relayListener)
public FutureForkJoin<FutureDone<Void>> shutdown()
public FutureRelay setupRelays(FutureRelay futureRelay, Collection<PeerAddress> relays, int successRelays, int maxFail)
PeerAddress.MAX_RELAYS or passed to the
constructor of this class. It is important that we call this after we
bootstrapped and have recent information in our peer map.DistributedRelay instanceCopyright © 2014. All rights reserved.