public interface RpcClient
| Modifier and Type | Method and Description |
|---|---|
RpcClient |
addInterface(Class serviceInterface)
Let the client handle requests for a service interface.
|
RpcClient |
addInvocationListener(RpcClientSideInvocationListener listener)
Used for debugging and testing.
|
RpcClient |
addProtobuferRpcInterface(Object instance) |
void |
cancelInvocation(long rpcIndex)
Cancel invocation.
|
void |
failInvocation(long rpcIndex,
String errorMessage)
Signal that an invocation has failed.
|
MethodSignatureResolver |
getResolver()
Get the resolver instance used by this client to map
methods to parameter/return value prototypes.
|
com.google.protobuf.RpcChannel |
newClientRpcChannel()
Generate a new client channel to be used for communicating
through this RpcClient.
|
BlobeeRpcController |
newController()
Get a new controller associated with this client.
|
void |
returnCall(RemoteExecutionContext dc,
com.google.protobuf.Message message)
Return the value of an invocation.
|
RpcClient |
start()
Start the client.
|
void |
stop()
Stop the client from accepting incoming invocations.
|
void |
terminateMultiSequence(long rpcIdx)
Terminate the sequence of return values associated with
the index.
|
void cancelInvocation(long rpcIndex)
rpcIndex - Index of the invocation to cancel.void failInvocation(long rpcIndex,
String errorMessage)
rpcIndex - The index of the invocation to fail.errorMessage - A human readable error message.com.google.protobuf.RpcChannel newClientRpcChannel()
BlobeeRpcController newController()
void returnCall(RemoteExecutionContext dc, com.google.protobuf.Message message)
dc - The context for this invocation.message - The value to return.RpcClient start()
void stop()
RpcClient addInterface(Class serviceInterface)
serviceInterface - A protoc generated service interface.MethodSignatureResolver getResolver()
RpcClient addInvocationListener(RpcClientSideInvocationListener listener)
listener - a listenervoid terminateMultiSequence(long rpcIdx)
rpcIdx - The index we're ending the return sequence for.Copyright © 2013. All Rights Reserved.