public interface OutgoingRpcAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
returnRpcResult(long rpcIndex,
Rpc.MethodSignature methodSignature,
com.google.protobuf.Message result)
Send a return value for an invocation.
|
void |
sendCancelMessage(long rpcIndex)
Send a cancel message.
|
void |
sendHeartbeat()
Send a heartbeat message so that the peer at the other
end of the connection knows that we're alive.
|
void |
sendInvocation(String methodName,
String inputType,
String outputType,
Long rpcIndex,
com.google.protobuf.Message request)
Send a request to invoke a remote procedure.
|
void |
sendInvocationFailedMessage(long rpcIndex,
String reason)
Sent by the serving side of a connection can inform the client
side that an invocation failed for some reason.
|
void sendInvocation(String methodName, String inputType, String outputType, Long rpcIndex, com.google.protobuf.Message request)
methodName - The name of the method, this is a fqdn in the
java type namespace.inputType - The name of the input parameter. An fqdn in the java
type namespace.outputTypeThe - name of the output parameter. An fqdn in the java
type namespace.rpcIndex - For this outgoing connection, this is an index
uniquely identifying the invocation.request - The parameter to the remote procedure.void returnRpcResult(long rpcIndex,
Rpc.MethodSignature methodSignature,
com.google.protobuf.Message result)
rpcIndex - The index of this invocation.methodSignature - The signature of the method being invoked.result - The actual result being returned.void sendHeartbeat()
void sendCancelMessage(long rpcIndex)
rpcIndex - Index of the cancelled invocation.void sendInvocationFailedMessage(long rpcIndex,
String reason)
rpcIndex - The index of the failed invocation.reason - A human readable string explaing what went wrong.Copyright © 2013. All Rights Reserved.