public abstract class ServantProtocolInvoker<T> extends Object implements ProtocolInvoker<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ConcurrentHashSet<Invoker<T>> |
allInvoker |
protected Class<T> |
api |
protected ProtocolFactory |
protocolFactory |
protected SelectorManager |
selectorManager |
protected ServantProxyConfig |
servantProxyConfig |
protected ThreadPoolExecutor |
threadPoolExecutor |
| 构造器和说明 |
|---|
ServantProtocolInvoker(Class<T> api,
ServantProxyConfig config,
ProtocolFactory protocolFactory,
ThreadPoolExecutor threadPoolExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Invoker<T> |
create(Class<T> api,
Url url) |
void |
destroy() |
protected ServantClient[] |
getClients(Url url) |
Collection<Invoker<T>> |
getInvokers() |
protected ServantClient |
initClient(Url url) |
protected ConcurrentHashSet<Invoker<T>> |
initInvoker() |
void |
refresh() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateContextprotected final ServantProxyConfig servantProxyConfig
protected final ThreadPoolExecutor threadPoolExecutor
protected final ProtocolFactory protocolFactory
protected volatile SelectorManager selectorManager
protected volatile ConcurrentHashSet<Invoker<T>> allInvoker
public ServantProtocolInvoker(Class<T> api, ServantProxyConfig config, ProtocolFactory protocolFactory, ThreadPoolExecutor threadPoolExecutor)
public abstract Invoker<T> create(Class<T> api, Url url) throws Exception
create 在接口中 ProtocolInvoker<T>Exceptionpublic Collection<Invoker<T>> getInvokers()
getInvokers 在接口中 ProtocolInvoker<T>public void destroy()
destroy 在接口中 ProtocolInvoker<T>public void refresh()
refresh 在接口中 ProtocolInvoker<T>protected ServantClient[] getClients(Url url) throws IOException
IOExceptionprotected ServantClient initClient(Url url)
protected ConcurrentHashSet<Invoker<T>> initInvoker()
Copyright © 2020. All Rights Reserved.