public interface PeerDiscovery
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.net.InetSocketAddress> |
getPeers(long services,
long timeoutValue,
java.util.concurrent.TimeUnit timeoutUnit)
Queries the addresses.
|
void |
shutdown()
Stops any discovery in progress when we want to shut down quickly.
|
java.util.List<java.net.InetSocketAddress> getPeers(long services,
long timeoutValue,
java.util.concurrent.TimeUnit timeoutUnit)
throws PeerDiscoveryException
services - Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK.PeerDiscoveryExceptionvoid shutdown()