public final class RpcClientControllerImpl extends Object implements RpcClientController
| Constructor and Description |
|---|
RpcClientControllerImpl()
Construct a new controller instance to be used on the client side.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindToInvocation(RpcClientSideInvocation invocation)
Bind the controller to a record keeping track of the client side
of an RPC invocation.
|
String |
errorText() |
boolean |
failed() |
long |
getIndex()
The index of the invocation.
|
boolean |
isActive()
True if the controller is associated with an RPC invocation
that is still ongoing.
|
boolean |
isCanceled() |
boolean |
isMultiReturn()
True iff the invocation is multi-return.
|
boolean |
isNoReturn()
True iff the invocation is a no-return invocation.
|
void |
notifyOnCancel(com.google.protobuf.RpcCallback<Object> callback) |
void |
reset() |
void |
setActive(boolean active)
Setting the value that is read by isActive.
|
void |
setClientAndIndex(RpcClientImpl rpcClient,
long rpcIndex)
Associate the client with a client and an index.
|
void |
setFailed(String reason) |
void |
setMultiReturn()
Set this invocation to be multi-return, meaning that a procedure can
return more than one value.
|
void |
setNoReturn()
Set this invocation to be no-return, meaning that it is assumed that the
return-value callback will not be invoked.
|
void |
startCancel() |
public RpcClientControllerImpl()
public void reset()
reset in interface com.google.protobuf.RpcControllerpublic void bindToInvocation(RpcClientSideInvocation invocation)
RpcClientControllerbindToInvocation in interface RpcClientControllerinvocation - The invocation that we want the
controller to be associated with.public boolean isActive()
RpcClientControllerisActive in interface RpcClientControllerpublic void setActive(boolean active)
RpcClientControllersetActive in interface RpcClientControlleractive - New value of active field.public boolean failed()
failed in interface com.google.protobuf.RpcControllerpublic String errorText()
errorText in interface com.google.protobuf.RpcControllerpublic void startCancel()
startCancel in interface com.google.protobuf.RpcControllerpublic void setFailed(String reason)
setFailed in interface com.google.protobuf.RpcControllerpublic boolean isCanceled()
isCanceled in interface com.google.protobuf.RpcControllerpublic void notifyOnCancel(com.google.protobuf.RpcCallback<Object> callback)
notifyOnCancel in interface com.google.protobuf.RpcControllerpublic void setClientAndIndex(RpcClientImpl rpcClient, long rpcIndex)
RpcClientControllersetClientAndIndex in interface RpcClientControllerrpcClient - The client associated witht this controller.rpcIndex - The index associated with this controller.public long getIndex()
RpcClientControllergetIndex in interface RpcClientControllerpublic void setMultiReturn()
BlobeeRpcControllersetMultiReturn in interface BlobeeRpcControllerpublic boolean isMultiReturn()
BlobeeRpcControllerisMultiReturn in interface BlobeeRpcControllerpublic void setNoReturn()
BlobeeRpcControllersetNoReturn in interface BlobeeRpcControllerpublic boolean isNoReturn()
BlobeeRpcControllerisNoReturn in interface BlobeeRpcControllerCopyright © 2013. All Rights Reserved.