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