public abstract class AddressResolverGroup<T extends java.net.SocketAddress>
extends java.lang.Object
implements java.io.Closeable
NameResolvers so that each EventExecutor has its own resolver instance.| 限定符 | 构造器和说明 |
|---|---|
protected |
AddressResolverGroup() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes all
NameResolvers created by this group. |
AddressResolver<T> |
getResolver(EventExecutor executor)
Returns the
AddressResolver associated with the specified EventExecutor. |
protected abstract AddressResolver<T> |
newResolver(EventExecutor executor)
Invoked by
getResolver(EventExecutor) to create a new AddressResolver. |
public AddressResolver<T> getResolver(EventExecutor executor)
AddressResolver associated with the specified EventExecutor. If there's no associated
resolver found, this method creates and returns a new resolver instance created by
newResolver(EventExecutor) so that the new resolver is reused on another
#getResolver(EventExecutor) call with the same EventExecutor.protected abstract AddressResolver<T> newResolver(EventExecutor executor) throws java.lang.Exception
getResolver(EventExecutor) to create a new AddressResolver.java.lang.Exceptionpublic void close()
NameResolvers created by this group.close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseable