public class SeedPeers extends Object implements PeerDiscovery
| Modifier and Type | Field and Description |
|---|---|
static int[] |
seedAddrs |
| Constructor and Description |
|---|
SeedPeers(NetworkParameters params) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getPeer()
Acts as an iterator, returning the address of each node in the list sequentially.
|
InetSocketAddress[] |
getPeers(long timeoutValue,
TimeUnit timeoutUnit)
Returns an array containing all the Bitcoin nodes within the list.
|
void |
shutdown()
Stops any discovery in progress when we want to shut down quickly.
|
public SeedPeers(NetworkParameters params)
@Nullable public InetSocketAddress getPeer() throws PeerDiscoveryException
PeerDiscoveryExceptionpublic InetSocketAddress[] getPeers(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException
getPeers in interface PeerDiscoveryPeerDiscoveryExceptionpublic void shutdown()
PeerDiscoveryshutdown in interface PeerDiscoveryCopyright © 2014. All rights reserved.