@UnstableApi public class NoopAddressResolver extends AbstractAddressResolver<java.net.SocketAddress>
AddressResolver
不执行任何决议,但始终报告成功的解决方案。
当解析器由管道中的处理程序(如代理处理程序)执行时,此解析器非常有用。
Constructor and Description |
---|
NoopAddressResolver(EventExecutor executor) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doIsResolved(java.net.SocketAddress address)
由
AbstractAddressResolver.isResolved(SocketAddress) 调用以检查指定的
address 是否已经解决。
|
protected void |
doResolve(java.net.SocketAddress unresolvedAddress, Promise<java.net.SocketAddress> promise)
由
AbstractAddressResolver.resolve(SocketAddress) 调用来执行实际的名称解析。
|
protected void |
doResolveAll(java.net.SocketAddress unresolvedAddress, Promise<java.util.List<java.net.SocketAddress>> promise)
由
AbstractAddressResolver.resolveAll(SocketAddress) 调用来执行实际的名称解析。
|
close, executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public NoopAddressResolver(EventExecutor executor)
protected boolean doIsResolved(java.net.SocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
调用以检查指定的
address
是否已经解决。
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)
调用以执行实际的名称解析。
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)
调用来执行实际的名称解析。
doResolveAll
在课堂上
AbstractAddressResolver<java.net.SocketAddress>
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.