public static class DnsDiscovery.DnsSeedDiscovery extends Object implements PeerDiscovery
Constructor and Description |
---|
DnsSeedDiscovery(NetworkParameters params,
String hostname) |
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.
|
String |
toString() |
public DnsSeedDiscovery(NetworkParameters params, String hostname)
public InetSocketAddress[] getPeers(long services, long timeoutValue, 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
Copyright © 2016. All rights reserved.