public class InetSocketAddressResolver extends AbstractAddressResolver<java.net.InetSocketAddress>
AbstractAddressResolver
that resolves InetSocketAddress
.构造器和说明 |
---|
InetSocketAddressResolver(EventExecutor executor,
NameResolver<java.net.InetAddress> nameResolver) |
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Closes all the resources allocated and used by this resolver.
|
protected boolean |
doIsResolved(java.net.InetSocketAddress address)
Invoked by
AbstractAddressResolver.isResolved(SocketAddress) to check if the specified address has been resolved
already. |
protected void |
doResolve(java.net.InetSocketAddress unresolvedAddress,
Promise<java.net.InetSocketAddress> promise)
Invoked by
AbstractAddressResolver.resolve(SocketAddress) to perform the actual name
resolution. |
protected void |
doResolveAll(java.net.InetSocketAddress unresolvedAddress,
Promise<java.util.List<java.net.InetSocketAddress>> promise)
Invoked by
AbstractAddressResolver.resolveAll(SocketAddress) to perform the actual name
resolution. |
executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public InetSocketAddressResolver(EventExecutor executor, NameResolver<java.net.InetAddress> nameResolver)
executor
- the EventExecutor
which is used to notify the listeners of the Future
returned
by AbstractAddressResolver.resolve(java.net.SocketAddress)
nameResolver
- the NameResolver
used for name resolutionprotected boolean doIsResolved(java.net.InetSocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
to check if the specified address
has been resolved
already.doIsResolved
在类中 AbstractAddressResolver<java.net.InetSocketAddress>
protected void doResolve(java.net.InetSocketAddress unresolvedAddress, Promise<java.net.InetSocketAddress> promise) throws java.lang.Exception
AbstractAddressResolver
AbstractAddressResolver.resolve(SocketAddress)
to perform the actual name
resolution.doResolve
在类中 AbstractAddressResolver<java.net.InetSocketAddress>
java.lang.Exception
protected void doResolveAll(java.net.InetSocketAddress unresolvedAddress, Promise<java.util.List<java.net.InetSocketAddress>> promise) throws java.lang.Exception
AbstractAddressResolver
AbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name
resolution.doResolveAll
在类中 AbstractAddressResolver<java.net.InetSocketAddress>
java.lang.Exception
public void close()
AddressResolver
close
在接口中 AddressResolver<java.net.InetSocketAddress>
close
在接口中 java.io.Closeable
close
在接口中 java.lang.AutoCloseable
close
在类中 AbstractAddressResolver<java.net.InetSocketAddress>