public class RpcClient extends SocketPool implements java.lang.reflect.InvocationHandler
| Modifier and Type | Field and Description |
|---|---|
protected static byte[][] |
uidLocks |
connectTimeout, host, port, proxy, readTimeout, sslContext, thinLto, tosclosed, createdCount, fifo, initialCount, keepEmpty, maxCount, timeout, timeouts, waitingThreads| Constructor and Description |
|---|
RpcClient(ConnectionString conn) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object request) |
java.lang.Object |
invoke(java.lang.Object request,
int timeout) |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object... args) |
protected java.lang.Object |
invokeServiceRequest(java.lang.Object request) |
protected void |
provideSerializer(Serializer serializer) |
protected Serializer |
requestSerializer(long uid) |
protected static java.lang.Object |
uidLockFor(long uid) |
createObject, destroyObject, getBusyCount, getConnectTimeout, getFifo, getIdleCount, getMaxCount, getProxy, getReadTimeout, getSslContext, getTimeout, getTimeouts, getWaitingThreads, name, setConnectTimeout, setFifo, setMaxCount, setProperties, setProxy, setReadTimeout, setSslContext, setTimeoutborrowObject, close, initialize, invalidateAll, invalidateObject, isClosed, returnObjectadd, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitinvalidateAll, isClosedpublic RpcClient(ConnectionString conn)
public java.lang.Object invoke(java.lang.Object request)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object invoke(java.lang.Object request,
int timeout)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object... args)
throws java.lang.Exception
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Exceptionprotected static java.lang.Object uidLockFor(long uid)
protected void provideSerializer(Serializer serializer) throws java.lang.Exception
java.lang.Exceptionprotected Serializer requestSerializer(long uid) throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Object invokeServiceRequest(java.lang.Object request)
throws java.lang.Exception
java.lang.Exception