| Modifier and Type | Class and Description |
|---|---|
static class |
Rpc.Future<R> |
static interface |
Rpc.Listener<A extends Marshal,R extends Marshal> |
| Modifier | Constructor and Description |
|---|---|
protected |
Rpc() |
protected |
Rpc(Rpc.Listener<A,R> listener) |
| Modifier and Type | Method and Description |
|---|---|
A |
getArgument() |
Manager |
getManager() |
R |
getResult() |
protected abstract long |
getTimeout() |
Transport |
getTransport() |
protected void |
onCancel() |
protected void |
onClient() |
protected void |
onServer() |
protected void |
onTimeout() |
void |
process() |
void |
response() |
void |
send(Transport transport) |
Rpc<A,R> |
setArgument(A argument) |
Rpc<A,R> |
setResult(R result) |
Rpc.Future<R> |
submit(Transport transport) |
java.lang.String |
toString() |
protected Rpc()
protected Rpc(Rpc.Listener<A,R> listener)
public void process()
throws java.lang.Exception
public final A getArgument()
public final R getResult()
public final Transport getTransport()
public final Manager getManager()
public final void send(Transport transport) throws java.lang.InstantiationException, SizePolicyException, CodecException, java.lang.ClassCastException
java.lang.InstantiationExceptionSizePolicyExceptionCodecExceptionjava.lang.ClassCastExceptionpublic final void response()
throws java.lang.InstantiationException,
SizePolicyException,
CodecException,
java.lang.ClassCastException
java.lang.InstantiationExceptionSizePolicyExceptionCodecExceptionjava.lang.ClassCastExceptionpublic final Rpc.Future<R> submit(Transport transport) throws java.lang.InstantiationException, SizePolicyException, CodecException, java.lang.ClassCastException
java.lang.InstantiationExceptionSizePolicyExceptionCodecExceptionjava.lang.ClassCastExceptionprotected void onTimeout()
protected void onCancel()
protected void onServer()
throws java.lang.Exception
java.lang.Exceptionprotected void onClient()
throws java.lang.Exception
java.lang.Exceptionprotected abstract long getTimeout()
public java.lang.String toString()
toString in class java.lang.Object