public final class RpcServiceControllerImpl extends Object implements RpcServiceController
| Constructor and Description |
|---|
RpcServiceControllerImpl(RemoteExecutionContext rec,
boolean multiReturn,
boolean noReturn)
Construct a new controller based on a remote execution context.
|
| Modifier and Type | Method and Description |
|---|---|
String |
errorText() |
boolean |
failed() |
void |
invokeCancelledCallback()
Invoke the "cancelled callback" callback that is used to
inform the service that it has been cancelled by the client.
|
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 |
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 RpcServiceControllerImpl(RemoteExecutionContext rec, boolean multiReturn, boolean noReturn)
rec - the remote execution context for this controller.public void reset()
reset in interface com.google.protobuf.RpcControllerpublic boolean failed()
failed in interface com.google.protobuf.RpcControllerpublic String errorText()
errorText in interface com.google.protobuf.RpcControllerpublic void notifyOnCancel(com.google.protobuf.RpcCallback<Object> callback)
notifyOnCancel in interface com.google.protobuf.RpcControllerpublic void invokeCancelledCallback()
RpcServiceControllerinvokeCancelledCallback in interface RpcServiceControllerpublic 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 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.