public static class DnsDiscovery.DnsSeedDiscovery extends java.lang.Object implements PeerDiscovery
Constructor and Description |
---|
DnsSeedDiscovery(NetworkParameters params,
java.lang.String hostname) |
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.lang.String |
toString() |
public DnsSeedDiscovery(NetworkParameters params, java.lang.String hostname)
public java.net.InetSocketAddress[] getPeers(long services, long timeoutValue, java.util.concurrent.TimeUnit timeoutUnit) throws PeerDiscoveryException
PeerDiscovery
getPeers
in interface PeerDiscovery
services
- Required services as a bitmask, e.g. VersionMessage.NODE_NETWORK
.PeerDiscoveryException
public void shutdown()
PeerDiscovery
shutdown
in interface PeerDiscovery
public java.lang.String toString()
toString
in class java.lang.Object