@UnstableApi public class DefaultNameResolver extends InetNameResolver
InetNameResolver
。
请注意,此解析器从调用者线程执行阻止名称查找。
Constructor and Description |
---|
DefaultNameResolver(EventExecutor executor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doResolve(java.lang.String inetHost, Promise<java.net.InetAddress> promise)
由
SimpleNameResolver.resolve(String) 调用来执行实际的名称解析。
|
protected void |
doResolveAll(java.lang.String inetHost, Promise<java.util.List<java.net.InetAddress>> promise)
由
SimpleNameResolver.resolveAll(String) 调用来执行实际的名称解析。
|
asAddressResolver
close, executor, resolve, resolve, resolveAll, resolveAll
public DefaultNameResolver(EventExecutor executor)
protected void doResolve(java.lang.String inetHost, Promise<java.net.InetAddress> promise) throws java.lang.Exception
SimpleNameResolver
SimpleNameResolver.resolve(String)
调用来执行实际的名称解析。
doResolve
在课堂上
SimpleNameResolver<java.net.InetAddress>
java.lang.Exception
protected void doResolveAll(java.lang.String inetHost, Promise<java.util.List<java.net.InetAddress>> promise) throws java.lang.Exception
SimpleNameResolver
SimpleNameResolver.resolveAll(String)
调用来执行实际的名称解析。
doResolveAll
在课程
SimpleNameResolver<java.net.InetAddress>
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.