public final class RpcClientControllerImpl extends Object implements RpcClientController
| Constructor and Description |
|---|
RpcClientControllerImpl() |
| 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() |
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 |
startCancel() |
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 RpcClientControllerCopyright © 2013. All Rights Reserved.