public interface PeerDiscovery
| Modifier and Type | Method and Description | 
|---|---|
java.net.InetSocketAddress[] | 
getPeers(long services,
        long timeoutValue,
        java.util.concurrent.TimeUnit timeoutUnit)
Returns an array of addresses. 
 | 
void | 
shutdown()
Stops any discovery in progress when we want to shut down quickly. 
 | 
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()