Package org.bitcoinj.net.discovery
Interface PeerDiscovery
- 
- All Known Implementing Classes:
 DnsDiscovery,DnsDiscovery.DnsSeedDiscovery,HttpDiscovery,MultiplexingDiscovery,SeedPeers
public interface PeerDiscoveryA PeerDiscovery object is responsible for finding addresses of other nodes in the Bitcoin P2P network. Note that the addresses returned may or may not be accepting connections. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.net.InetSocketAddress>getPeers(long services, long timeoutValue, java.util.concurrent.TimeUnit timeoutUnit)Queries the addresses.voidshutdown()Stops any discovery in progress when we want to shut down quickly. 
 - 
 
- 
- 
Method Detail
- 
getPeers
java.util.List<java.net.InetSocketAddress> getPeers(long services, long timeoutValue, java.util.concurrent.TimeUnit timeoutUnit) throws PeerDiscoveryExceptionQueries the addresses. This method may block.- Parameters:
 services- Required services as a bitmask, e.g.VersionMessage.NODE_NETWORK.- Throws:
 PeerDiscoveryException
 
- 
shutdown
void shutdown()
Stops any discovery in progress when we want to shut down quickly. 
 - 
 
 -