@UnstableApi public class NoopAddressResolver extends AbstractAddressResolver<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.Constructor and Description |
---|
NoopAddressResolver(io.netty.util.concurrent.EventExecutor executor) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doIsResolved(SocketAddress address)
Invoked by
AbstractAddressResolver.isResolved(SocketAddress) to check if the specified address has been resolved
already. |
protected void |
doResolve(SocketAddress unresolvedAddress,
io.netty.util.concurrent.Promise<SocketAddress> promise)
Invoked by
AbstractAddressResolver.resolve(SocketAddress) to perform the actual name
resolution. |
protected void |
doResolveAll(SocketAddress unresolvedAddress,
io.netty.util.concurrent.Promise<List<SocketAddress>> promise)
Invoked by
AbstractAddressResolver.resolveAll(SocketAddress) to perform the actual name
resolution. |
close, executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public NoopAddressResolver(io.netty.util.concurrent.EventExecutor executor)
protected boolean doIsResolved(SocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
to check if the specified address
has been resolved
already.doIsResolved
in class AbstractAddressResolver<SocketAddress>
protected void doResolve(SocketAddress unresolvedAddress, io.netty.util.concurrent.Promise<SocketAddress> promise) throws Exception
AbstractAddressResolver
AbstractAddressResolver.resolve(SocketAddress)
to perform the actual name
resolution.doResolve
in class AbstractAddressResolver<SocketAddress>
Exception
protected void doResolveAll(SocketAddress unresolvedAddress, io.netty.util.concurrent.Promise<List<SocketAddress>> promise) throws Exception
AbstractAddressResolver
AbstractAddressResolver.resolveAll(SocketAddress)
to perform the actual name
resolution.doResolveAll
in class AbstractAddressResolver<SocketAddress>
Exception
Copyright © 2008–2019 The Netty Project. All rights reserved.