public interface PeerDiscovery
Modifier and Type | Method and Description |
---|---|
InetSocketAddress[] |
getPeers(long services,
long timeoutValue,
TimeUnit timeoutUnit)
Returns an array of addresses.
|
void |
shutdown()
Stops any discovery in progress when we want to shut down quickly.
|
InetSocketAddress[] getPeers(long services, long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException
services
- Required services as a bitmask, e.g. VersionMessage#NODE_NETWORK
.PeerDiscoveryException
void shutdown()
Copyright © 2016. All rights reserved.