public class NoopAddressResolver extends AbstractAddressResolver<java.net.SocketAddress>
AddressResolver
that does not perform any resolution but always reports successful resolution.
This resolver is useful when name resolution is performed by a handler in a pipeline, such as a proxy handler.构造器和说明 |
---|
NoopAddressResolver(EventExecutor executor) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
doIsResolved(java.net.SocketAddress address)
Invoked by
AbstractAddressResolver.isResolved(SocketAddress) to check if the specified address has been resolved
already. |
protected void |
doResolve(java.net.SocketAddress unresolvedAddress,
Promise<java.net.SocketAddress> promise)
Invoked by
AbstractAddressResolver.resolve(SocketAddress) to perform the actual name
resolution. |
protected void |
doResolveAll(java.net.SocketAddress unresolvedAddress,
Promise<java.util.List<java.net.SocketAddress>> promise)
Invoked by
AbstractAddressResolver.resolveAll(SocketAddress) to perform the actual name
resolution. |
close, executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public NoopAddressResolver(EventExecutor executor)
protected boolean doIsResolved(java.net.SocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
to check if the specified address
has been resolved
already.doIsResolved
在类中 AbstractAddressResolver<java.net.SocketAddress>
protected void doResolve(java.net.SocketAddress unresolvedAddress, Promise<java.net.SocketAddress> promise) throws java.lang.Exception
AbstractAddressResolver
AbstractAddressResolver.resolve(SocketAddress)
to perform the actual name
resolution.doResolve
在类中 AbstractAddressResolver<java.net.SocketAddress>
java.lang.Exception
protected void doResolveAll(java.net.SocketAddress unresolvedAddress, Promise<java.util.List<java.net.SocketAddress>> promise) throws java.lang.Exception
AbstractAddressResolver
AbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name
resolution.doResolveAll
在类中 AbstractAddressResolver<java.net.SocketAddress>
java.lang.Exception