public class DefaultRpcController extends Object implements com.google.protobuf.RpcController
| Constructor and Description |
|---|
DefaultRpcController() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
errorException()
Returns the exception that caused operation failed.
|
String |
errorText() |
boolean |
failed() |
boolean |
isCanceled() |
void |
notifyOnCancel(com.google.protobuf.RpcCallback<Object> callback) |
void |
reset() |
void |
setException(Throwable exception)
Sets the exception.
|
void |
setFailed(String reason) |
void |
startCancel() |
public String errorText()
errorText in interface com.google.protobuf.RpcControllerpublic Throwable errorException()
public boolean failed()
failed 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 reset()
reset in interface com.google.protobuf.RpcControllerpublic void setFailed(String reason)
setFailed in interface com.google.protobuf.RpcControllerpublic void setException(Throwable exception)
exception - public void startCancel()
startCancel in interface com.google.protobuf.RpcController