Package org.bitcoinj.net.discovery
Class DnsDiscovery.DnsSeedDiscovery
java.lang.Object
org.bitcoinj.net.discovery.DnsDiscovery.DnsSeedDiscovery
- All Implemented Interfaces:
PeerDiscovery
- Enclosing class:
- DnsDiscovery
Implements discovery from a single DNS host.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DnsSeedDiscovery
-
-
Method Details
-
getPeers
public List<InetSocketAddress> getPeers(long services, long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException Description copied from interface:PeerDiscovery
Queries the addresses. This method may block.- Specified by:
getPeers
in interfacePeerDiscovery
- Parameters:
services
- Required services as a bitmask, e.g.VersionMessage.NODE_NETWORK
.- Throws:
PeerDiscoveryException
-
shutdown
public void shutdown()Description copied from interface:PeerDiscovery
Stops any discovery in progress when we want to shut down quickly.- Specified by:
shutdown
in interfacePeerDiscovery
-
toString
-