@UnstableApi public class InetSocketAddressResolver extends AbstractAddressResolver<java.net.InetSocketAddress>
AbstractAddressResolver
解析InetSocketAddress
。
Constructor and Description |
---|
InetSocketAddressResolver(EventExecutor executor, NameResolver<java.net.InetAddress> nameResolver) |
Modifier and Type | Method and Description |
---|---|
void |
close()
关闭此解析器分配和使用的所有资源。
|
protected boolean |
doIsResolved(java.net.InetSocketAddress address)
由
AbstractAddressResolver.isResolved(SocketAddress) 调用来检查指定的
address 是否已经解决。
|
protected void |
doResolve(java.net.InetSocketAddress unresolvedAddress, Promise<java.net.InetSocketAddress> promise)
由
AbstractAddressResolver.resolve(SocketAddress) 调用来执行实际的名称解析。
|
protected void |
doResolveAll(java.net.InetSocketAddress unresolvedAddress, Promise<java.util.List<java.net.InetSocketAddress>> promise)
由
AbstractAddressResolver.resolveAll(SocketAddress) 调用来执行实际的名称解析。
|
executor, isResolved, isSupported, resolve, resolve, resolveAll, resolveAll
public InetSocketAddressResolver(EventExecutor executor, NameResolver<java.net.InetAddress> nameResolver)
executor
-所述EventExecutor
这是用来通知的听众Future
通过返回AbstractAddressResolver.resolve(java.net.SocketAddress)
nameResolver
- 用于名称解析的NameResolver
protected boolean doIsResolved(java.net.InetSocketAddress address)
AbstractAddressResolver
AbstractAddressResolver.isResolved(SocketAddress)
调用来检查指定的
address
是否已经解决。
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)
调用来执行实际的名称解析。
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)
调用来执行实际的名称解析。
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
in class
AbstractAddressResolver<java.net.InetSocketAddress>
Copyright © 2008–2018 The Netty Project. All rights reserved.