- java.lang.Object
-
- io.netty5.resolver.SimpleNameResolver<InetAddress>
-
- io.netty5.resolver.InetNameResolver
-
- All Implemented Interfaces:
NameResolver<InetAddress>
,Closeable
,AutoCloseable
- Direct Known Subclasses:
DefaultNameResolver
,DnsNameResolver
,RoundRobinInetAddressResolver
public abstract class InetNameResolver extends SimpleNameResolver<InetAddress>
A skeletalNameResolver
implementation that resolvesInetAddress
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InetNameResolver(EventExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressResolver<InetSocketAddress>
asAddressResolver()
Return aAddressResolver
that will use this name resolver underneath.-
Methods inherited from class io.netty5.resolver.SimpleNameResolver
close, doResolve, doResolveAll, executor, resolve, resolve, resolveAll, resolveAll
-
-
-
-
Constructor Detail
-
InetNameResolver
protected InetNameResolver(EventExecutor executor)
- Parameters:
executor
- theEventExecutor
which is used to notify the listeners of theFuture
returned bySimpleNameResolver.resolve(String)
-
-
Method Detail
-
asAddressResolver
public AddressResolver<InetSocketAddress> asAddressResolver()
Return aAddressResolver
that will use this name resolver underneath. It's cached internally, so the same instance is always returned.
-
-