public class DefaultNameResolver extends InetNameResolver
InetNameResolver
that resolves using JDK's built-in domain name lookup mechanism.
Note that this resolver performs a blocking name lookup from the caller thread.构造器和说明 |
---|
DefaultNameResolver(EventExecutor executor) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
doResolve(java.lang.String inetHost,
Promise<java.net.InetAddress> promise)
Invoked by
SimpleNameResolver.resolve(String) to perform the actual name resolution. |
protected void |
doResolveAll(java.lang.String inetHost,
Promise<java.util.List<java.net.InetAddress>> promise)
Invoked by
SimpleNameResolver.resolveAll(String) to perform the actual name resolution. |
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)
to perform the actual name resolution.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)
to perform the actual name resolution.doResolveAll
在类中 SimpleNameResolver<java.net.InetAddress>
java.lang.Exception