public class RelayManager extends Object
| Constructor and Description |
|---|
RelayManager(Peer peer,
RelayRPC relayRPC,
BootstrapBuilder bootstrapBuilder,
int maxRelays,
int minRelays,
int peerMapUpdateInterval,
int relaySearchInterval,
int failedRelayWaitTime) |
| Modifier and Type | Method and Description |
|---|---|
Collection<PeerAddress> |
getRelayAddresses()
Returns addresses of current relay peers
|
int |
maxRelays() |
RelayFuture |
setupRelays()
Sets up relay connections to other peers.
|
public RelayManager(Peer peer, RelayRPC relayRPC, BootstrapBuilder bootstrapBuilder, int maxRelays, int minRelays, int peerMapUpdateInterval, int relaySearchInterval, int failedRelayWaitTime)
peer - the unreachable peerrelayRPC - the relay RPCmaxRelays - maximum number of relay peers to set uppublic Collection<PeerAddress> getRelayAddresses()
public int maxRelays()
public RelayFuture setupRelays()
PeerAddress.MAX_RELAYS or passed to the
constructor of this class.RelayManager instanceCopyright © 2014. All rights reserved.