public class DnsAddressResolverGroup extends AddressResolverGroup<InetSocketAddress>
Constructor and Description |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
Modifier and Type | Method and Description |
---|---|
protected AddressResolver<InetSocketAddress> |
newAddressResolver(EventLoop eventLoop,
NameResolver<InetAddress> resolver)
Creates a new
AddressResolver . |
protected NameResolver<InetAddress> |
newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
protected AddressResolver<InetSocketAddress> |
newResolver(EventExecutor executor)
Invoked by
AddressResolverGroup.getResolver(EventExecutor) to create a new AddressResolver . |
protected AddressResolver<InetSocketAddress> |
newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Deprecated.
|
close, getResolver
public DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder)
public DnsAddressResolverGroup(Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider)
public DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
protected final AddressResolver<InetSocketAddress> newResolver(EventExecutor executor) throws Exception
AddressResolverGroup
AddressResolverGroup.getResolver(EventExecutor)
to create a new AddressResolver
.newResolver
in class AddressResolverGroup<InetSocketAddress>
Exception
@Deprecated protected AddressResolver<InetSocketAddress> newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws Exception
newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider)
.Exception
protected NameResolver<InetAddress> newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws Exception
NameResolver
. Override this method to create an alternative NameResolver
implementation or override the default configuration.Exception
protected AddressResolver<InetSocketAddress> newAddressResolver(EventLoop eventLoop, NameResolver<InetAddress> resolver) throws Exception
AddressResolver
. Override this method to create an alternative AddressResolver
implementation or override the default configuration.Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.