Interface AnyRpcClientContext
-
- All Known Implementing Classes:
GrpcClientContext
public interface AnyRpcClientContextRPC-agnostic client-side RPC context. An instance of this class is used for one RPC call.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetApplicationError()StringgetErrorDetail()ThrowablegetException()longgetStartTimeMillis()com.google.apphosting.base.protos.Status.StatusProtogetStatus()voidsetDeadline(double seconds)Set the deadline that will be applied to the RPC call made using this context.voidstartCancel()
-
-
-
Method Detail
-
getApplicationError
int getApplicationError()
-
getErrorDetail
String getErrorDetail()
-
getStartTimeMillis
long getStartTimeMillis()
-
getStatus
com.google.apphosting.base.protos.Status.StatusProto getStatus()
-
getException
Throwable getException()
-
setDeadline
void setDeadline(double seconds)
Set the deadline that will be applied to the RPC call made using this context. If this method is never called, there is no deadline.- Throws:
IllegalArgumentException- if the deadline is negative or too long. The maximum allowed deadline is unspecified, but is at least some number of years.
-
startCancel
void startCancel()
-
-