public abstract class InetNameResolver extends SimpleNameResolver<java.net.InetAddress>
NameResolver
implementation that resolves InetAddress
.限定符 | 构造器和说明 |
---|---|
protected |
InetNameResolver(EventExecutor executor) |
限定符和类型 | 方法和说明 |
---|---|
AddressResolver<java.net.InetSocketAddress> |
asAddressResolver()
Return a
AddressResolver that will use this name resolver underneath. |
close, doResolve, doResolveAll, executor, resolve, resolve, resolveAll, resolveAll
protected InetNameResolver(EventExecutor executor)
executor
- the EventExecutor
which is used to notify the listeners of the Future
returned
by SimpleNameResolver.resolve(String)
public AddressResolver<java.net.InetSocketAddress> asAddressResolver()
AddressResolver
that will use this name resolver underneath.
It's cached internally, so the same instance is always returned.