- java.lang.Object
-
- io.netty5.resolver.AddressResolverGroup<InetSocketAddress>
-
- io.netty5.resolver.dns.DnsAddressResolverGroup
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
RoundRobinDnsAddressResolverGroup
public class DnsAddressResolverGroup extends AddressResolverGroup<InetSocketAddress>
-
-
Constructor Summary
Constructors Constructor Description DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder)
DnsAddressResolverGroup(Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected AddressResolver<InetSocketAddress>
newAddressResolver(EventLoop eventLoop, NameResolver<InetAddress> resolver)
Creates a newAddressResolver
.protected NameResolver<InetAddress>
newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Creates a newNameResolver
.protected AddressResolver<InetSocketAddress>
newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Deprecated.protected AddressResolver<InetSocketAddress>
newResolver(EventExecutor executor)
Invoked byAddressResolverGroup.getResolver(EventExecutor)
to create a newAddressResolver
.-
Methods inherited from class io.netty5.resolver.AddressResolverGroup
close, getResolver
-
-
-
-
Constructor Detail
-
DnsAddressResolverGroup
public DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder)
-
DnsAddressResolverGroup
public DnsAddressResolverGroup(Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider)
-
DnsAddressResolverGroup
public DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
-
-
Method Detail
-
newResolver
protected final AddressResolver<InetSocketAddress> newResolver(EventExecutor executor) throws Exception
Description copied from class:AddressResolverGroup
Invoked byAddressResolverGroup.getResolver(EventExecutor)
to create a newAddressResolver
.- Specified by:
newResolver
in classAddressResolverGroup<InetSocketAddress>
- Throws:
Exception
-
newResolver
@Deprecated protected AddressResolver<InetSocketAddress> newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws Exception
Deprecated.- Throws:
Exception
-
newNameResolver
protected NameResolver<InetAddress> newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws Exception
Creates a newNameResolver
. Override this method to create an alternativeNameResolver
implementation or override the default configuration.- Throws:
Exception
-
newAddressResolver
protected AddressResolver<InetSocketAddress> newAddressResolver(EventLoop eventLoop, NameResolver<InetAddress> resolver) throws Exception
Creates a newAddressResolver
. Override this method to create an alternativeAddressResolver
implementation or override the default configuration.- Throws:
Exception
-
-