@UnstableApi public abstract class InetNameResolver extends SimpleNameResolver<java.net.InetAddress>
InetAddress
骨架NameResolver
实现。
Modifier | Constructor and Description |
---|---|
protected |
InetNameResolver(EventExecutor executor) |
Modifier and Type | Method and Description |
---|---|
AddressResolver<java.net.InetSocketAddress> |
asAddressResolver()
返回将在下面使用该名称解析器的 AddressResolver 。
|
close, doResolve, doResolveAll, executor, resolve, resolve, resolveAll, resolveAll
protected InetNameResolver(EventExecutor executor)
executor
-所述EventExecutor
这是用来通知的听众Future
通过返回SimpleNameResolver.resolve(String)
public AddressResolver<java.net.InetSocketAddress> asAddressResolver()
AddressResolver
。
它在内部被缓存,所以总是返回相同的实例。
Copyright © 2008–2018 The Netty Project. All rights reserved.