Class BasicDnsResolver

  • All Implemented Interfaces:
    ChannelPoolResolver

    public class BasicDnsResolver
    extends java.lang.Object
    implements ChannelPoolResolver
    A simple asynchronous resolver which uses the default JVM blocking resolver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.util.concurrent.Future<java.net.InetSocketAddress> resolve​(java.net.InetSocketAddress address, io.netty.util.concurrent.Promise<java.net.InetSocketAddress> promise)
      Asynchronously resolves the supplied InetSocketAddress and completes the promise when done.
      • Methods inherited from class java.lang.Object

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

      • BasicDnsResolver

        public BasicDnsResolver()
    • Method Detail

      • resolve

        @Nonnull
        public io.netty.util.concurrent.Future<java.net.InetSocketAddress> resolve​(@Nonnull
                                                                                   java.net.InetSocketAddress address,
                                                                                   @Nonnull
                                                                                   io.netty.util.concurrent.Promise<java.net.InetSocketAddress> promise)
        Description copied from interface: ChannelPoolResolver
        Asynchronously resolves the supplied InetSocketAddress and completes the promise when done.
        Specified by:
        resolve in interface ChannelPoolResolver
        Parameters:
        address - address to resolve.
        promise - promise to complete.
        Returns:
        promise