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
PeerDiscoveryException
public InetSocketAddress[] getPeers(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException
getPeers
in interface PeerDiscovery
PeerDiscoveryException
public void shutdown()
PeerDiscovery
shutdown
in interface PeerDiscovery
Copyright © 2014. All rights reserved.