Class DnsDiscovery.DnsSeedDiscovery

  • All Implemented Interfaces:
    PeerDiscovery
    Enclosing class:
    DnsDiscovery

    public static class DnsDiscovery.DnsSeedDiscovery
    extends java.lang.Object
    implements PeerDiscovery
    Implements discovery from a single DNS host.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      void shutdown()
      Stops any discovery in progress when we want to shut down quickly.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DnsSeedDiscovery

        public DnsSeedDiscovery​(NetworkParameters params,
                                java.lang.String hostname)
    • Method Detail

      • shutdown

        public void shutdown()
        Description copied from interface: PeerDiscovery
        Stops any discovery in progress when we want to shut down quickly.
        Specified by:
        shutdown in interface PeerDiscovery
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object