public abstract class ServantInvoker<T> extends AbstractInvoker<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected ServantClient[] |
clients |
protected ServantProxyConfig |
config |
protected ReentrantLock |
destroyLock |
protected AtomicInteger |
index |
protected String |
objName |
| 构造器和说明 |
|---|
ServantInvoker(ServantProxyConfig config,
Class<T> api,
Url url,
ServantClient[] clients) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
protected Object |
doInvoke(InvokeContext inv) |
protected abstract Object |
doInvokeServant(ServantInvokeContext inv) |
getApi, getUrl, invoke, isAvailable, isDestroyed, setAvailable, toStringprotected final String objName
protected final ServantProxyConfig config
protected final ServantClient[] clients
protected final AtomicInteger index
protected final ReentrantLock destroyLock
public ServantInvoker(ServantProxyConfig config, Class<T> api, Url url, ServantClient[] clients)
protected Object doInvoke(InvokeContext inv) throws Throwable
doInvoke 在类中 AbstractInvoker<T>Throwableprotected abstract Object doInvokeServant(ServantInvokeContext inv) throws Throwable
ThrowableCopyright © 2020. All Rights Reserved.