| 程序包 | 说明 |
|---|---|
| io.netty.bootstrap |
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
|
| io.netty.handler.address |
Package to dynamically replace local / remote
SocketAddress. |
| io.netty.resolver |
Resolves an arbitrary string that represents the name of an endpoint into an address.
|
| io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AddressResolverGroup<?> |
BootstrapConfig.resolver()
Returns the configured
AddressResolverGroup, null if resolver was disabled
with Bootstrap.disableResolver(), or the default if not configured yet. |
| 限定符和类型 | 方法和说明 |
|---|---|
Bootstrap |
Bootstrap.resolver(AddressResolverGroup<?> resolver)
Sets the
NameResolver which will resolve the address of the unresolved named address. |
| 构造器和说明 |
|---|
ResolveAddressHandler(AddressResolverGroup<? extends java.net.SocketAddress> resolverGroup) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultAddressResolverGroup
|
class |
NoopAddressResolverGroup
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DnsAddressResolverGroup
|
class |
RoundRobinDnsAddressResolverGroup
A
AddressResolverGroup of DnsNameResolvers that supports random selection of destination addresses if
multiple are provided by the nameserver. |