Interface PeerDiscovery

    • Method Detail

      • getPeers

        java.util.List<java.net.InetSocketAddress> getPeers​(long services,
                                                            java.time.Duration timeout)
                                                     throws PeerDiscoveryException
        Queries for addresses. This method may block.
        Parameters:
        services - required services as a bitmask, e.g. Services.NODE_NETWORK
        timeout - query timeout
        Returns:
        found addresses
        Throws:
        PeerDiscoveryException
      • shutdown

        void shutdown()
        Stops any discovery in progress when we want to shut down quickly.