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.Constructor and Description |
---|
DefaultNameResolver(EventExecutor executor) |
Modifier and Type | Method and Description |
---|---|
protected void |
doResolve(String inetHost,
Promise<InetAddress> promise)
Invoked by
SimpleNameResolver.resolve(String) to perform the actual name resolution. |
protected void |
doResolveAll(String inetHost,
Promise<List<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(String inetHost, Promise<InetAddress> promise) throws Exception
SimpleNameResolver
SimpleNameResolver.resolve(String)
to perform the actual name resolution.doResolve
in class SimpleNameResolver<InetAddress>
Exception
protected void doResolveAll(String inetHost, Promise<List<InetAddress>> promise) throws Exception
SimpleNameResolver
SimpleNameResolver.resolveAll(String)
to perform the actual name resolution.doResolveAll
in class SimpleNameResolver<InetAddress>
Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.