public class DnsAddressResolverGroup extends AddressResolverGroup<java.net.InetSocketAddress>
构造器和说明 |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder) |
限定符和类型 | 方法和说明 |
---|---|
protected AddressResolver<java.net.InetSocketAddress> |
newAddressResolver(EventLoop eventLoop,
NameResolver<java.net.InetAddress> resolver)
Creates a new
AddressResolver . |
protected NameResolver<java.net.InetAddress> |
newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
protected AddressResolver<java.net.InetSocketAddress> |
newResolver(EventExecutor executor)
Invoked by
AddressResolverGroup.getResolver(EventExecutor) to create a new AddressResolver . |
protected AddressResolver<java.net.InetSocketAddress> |
newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
|
close, getResolver
public DnsAddressResolverGroup(DnsNameResolverBuilder dnsResolverBuilder)
public DnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider)
public DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
protected final AddressResolver<java.net.InetSocketAddress> newResolver(EventExecutor executor) throws java.lang.Exception
AddressResolverGroup
AddressResolverGroup.getResolver(EventExecutor)
to create a new AddressResolver
.newResolver
在类中 AddressResolverGroup<java.net.InetSocketAddress>
java.lang.Exception
@Deprecated protected AddressResolver<java.net.InetSocketAddress> newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws java.lang.Exception
java.lang.Exception
protected NameResolver<java.net.InetAddress> newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) throws java.lang.Exception
NameResolver
. Override this method to create an alternative NameResolver
implementation or override the default configuration.java.lang.Exception
protected AddressResolver<java.net.InetSocketAddress> newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver) throws java.lang.Exception
AddressResolver
. Override this method to create an alternative AddressResolver
implementation or override the default configuration.java.lang.Exception