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 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 timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException
PeerDiscoverygetPeers in interface PeerDiscoveryPeerDiscoveryExceptionpublic void shutdown()
PeerDiscoveryshutdown in interface PeerDiscoveryCopyright © 2015. All rights reserved.