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.RpcController
public Throwable errorException()
public boolean failed()
failed
in interface com.google.protobuf.RpcController
public boolean isCanceled()
isCanceled
in interface com.google.protobuf.RpcController
public void notifyOnCancel(com.google.protobuf.RpcCallback<Object> callback)
notifyOnCancel
in interface com.google.protobuf.RpcController
public void reset()
reset
in interface com.google.protobuf.RpcController
public void setFailed(String reason)
setFailed
in interface com.google.protobuf.RpcController
public void setException(Throwable exception)
exception
- public void startCancel()
startCancel
in interface com.google.protobuf.RpcController