Class MultiplexingDiscovery

java.lang.Object
org.bitcoinj.net.discovery.MultiplexingDiscovery
All Implemented Interfaces:
PeerDiscovery
Direct Known Subclasses:
DnsDiscovery

public class MultiplexingDiscovery extends Object implements PeerDiscovery
MultiplexingDiscovery queries multiple PeerDiscovery objects, optionally shuffles their responses and then returns the results, thus selecting randomly between them and reducing the influence of any particular seed. Any that don't respond within the timeout are ignored. Backends are queried in parallel or serially. Backends may block.