Class RoundRobinAsyncDefaultResolverGroup

java.lang.Object
io.netty.resolver.AddressResolverGroup<InetSocketAddress>
net.buildtheearth.terraminusminus.util.netty.RoundRobinAsyncDefaultResolverGroup
All Implemented Interfaces:
Closeable, AutoCloseable

public class RoundRobinAsyncDefaultResolverGroup extends io.netty.resolver.AddressResolverGroup<InetSocketAddress>
An AddressResolverGroup of AsyncDefaultNameResolvers that supports random selection of destination addresses if multiple are provided by the nameserver. This is ideal for use in applications that use a pool of connections, for which connecting to a single resolved address would be inefficient.
See Also:
  • RoundRobinDnsAddressResolverGroup
  • Constructor Details

    • RoundRobinAsyncDefaultResolverGroup

      public RoundRobinAsyncDefaultResolverGroup(Executor lookupExecutor)
      Parameters:
      lookupExecutor - the Executor which is used to perform name lookups
  • Method Details

    • newResolver

      protected io.netty.resolver.AddressResolver<InetSocketAddress> newResolver(io.netty.util.concurrent.EventExecutor executor) throws Exception
      Specified by:
      newResolver in class io.netty.resolver.AddressResolverGroup<InetSocketAddress>
      Throws:
      Exception