@UnstableApi public class DnsAddressResolverGroup extends AddressResolverGroup<java.net.InetSocketAddress>
Constructor and Description |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider) |
Modifier and Type | Method and Description |
---|---|
protected AddressResolver<java.net.InetSocketAddress> |
newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver)
创建一个新的 AddressResolver 。
|
protected NameResolver<java.net.InetAddress> |
newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
创建一个新的 NameResolver 。
|
protected AddressResolver<java.net.InetSocketAddress> |
newResolver(EventExecutor executor)
|
protected AddressResolver<java.net.InetSocketAddress> |
newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
|
close, getResolver
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
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
。
重写此方法以创建替代NameResolver
实现或覆盖默认配置。
java.lang.Exception
protected AddressResolver<java.net.InetSocketAddress> newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver) throws java.lang.Exception
AddressResolver
。
重写此方法以创建替代AddressResolver
实现或覆盖默认配置。
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.