- java.lang.Object
-
- io.netty5.resolver.SimpleNameResolver<InetAddress>
-
- io.netty5.resolver.InetNameResolver
-
- io.netty5.resolver.DefaultNameResolver
-
- All Implemented Interfaces:
NameResolver<InetAddress>
,Closeable
,AutoCloseable
public class DefaultNameResolver extends InetNameResolver
AInetNameResolver
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 Summary
Constructors Constructor Description DefaultNameResolver(EventExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doResolve(String inetHost, Promise<InetAddress> promise)
Invoked bySimpleNameResolver.resolve(String)
to perform the actual name resolution.protected void
doResolveAll(String inetHost, Promise<List<InetAddress>> promise)
Invoked bySimpleNameResolver.resolveAll(String)
to perform the actual name resolution.-
Methods inherited from class io.netty5.resolver.InetNameResolver
asAddressResolver
-
Methods inherited from class io.netty5.resolver.SimpleNameResolver
close, executor, resolve, resolve, resolveAll, resolveAll
-
-
-
-
Constructor Detail
-
DefaultNameResolver
public DefaultNameResolver(EventExecutor executor)
-
-
Method Detail
-
doResolve
protected void doResolve(String inetHost, Promise<InetAddress> promise) throws Exception
Description copied from class:SimpleNameResolver
Invoked bySimpleNameResolver.resolve(String)
to perform the actual name resolution.- Specified by:
doResolve
in classSimpleNameResolver<InetAddress>
- Throws:
Exception
-
doResolveAll
protected void doResolveAll(String inetHost, Promise<List<InetAddress>> promise) throws Exception
Description copied from class:SimpleNameResolver
Invoked bySimpleNameResolver.resolveAll(String)
to perform the actual name resolution.- Specified by:
doResolveAll
in classSimpleNameResolver<InetAddress>
- Throws:
Exception
-
-