public class NoopNameResolver extends SimpleNameResolver<SocketAddress>
NameResolverthat 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|
|Modifier and Type||Method and Description|
close, executor, isResolved, isSupported, resolve, resolve, resolve, resolve
public NoopNameResolver(EventExecutor executor)
protected boolean doIsResolved(SocketAddress address)
SimpleNameResolver.isResolved(SocketAddress)to check if the specified
addresshas been resolved already.
protected void doResolve(SocketAddress unresolvedAddress, Promise<SocketAddress> promise) throws Exception
SimpleNameResolver.resolve(String, int)to perform the actual name resolution.
Copyright © 2008–2015 The Netty Project. All rights reserved.