Package com.linkedin.alpini.netty4.pool
Class BasicDnsResolver
- java.lang.Object
-
- com.linkedin.alpini.netty4.pool.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.
-
-
Constructor Summary
Constructors Constructor Description BasicDnsResolver()
-
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 suppliedInetSocketAddress
and completes the promise when done.
-
-
-
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 suppliedInetSocketAddress
and completes the promise when done.- Specified by:
resolve
in interfaceChannelPoolResolver
- Parameters:
address
- address to resolve.promise
- promise to complete.- Returns:
- promise
-
-