public class GrpcClientContext extends Object implements AnyRpcClientContext
AnyRpcClientContext that will record the details of a gRPC call.| Constructor and Description |
|---|
GrpcClientContext(Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
<ReqT,RespT> |
call(io.grpc.Channel channel,
io.grpc.MethodDescriptor<ReqT,RespT> method,
ReqT request,
io.grpc.stub.StreamObserver<RespT> responseObserver) |
int |
getApplicationError() |
String |
getErrorDetail() |
Throwable |
getException() |
long |
getStartTimeMillis() |
com.google.apphosting.base.protos.Status.StatusProto |
getStatus() |
void |
setDeadline(double seconds)
Set the deadline that will be applied to the RPC call made using this context.
|
void |
startCancel() |
public GrpcClientContext(Clock clock)
public <ReqT,RespT> void call(io.grpc.Channel channel,
io.grpc.MethodDescriptor<ReqT,RespT> method,
ReqT request,
io.grpc.stub.StreamObserver<RespT> responseObserver)
public long getStartTimeMillis()
getStartTimeMillis in interface AnyRpcClientContextpublic Throwable getException()
getException in interface AnyRpcClientContextpublic int getApplicationError()
getApplicationError in interface AnyRpcClientContextpublic String getErrorDetail()
getErrorDetail in interface AnyRpcClientContextpublic com.google.apphosting.base.protos.Status.StatusProto getStatus()
getStatus in interface AnyRpcClientContextpublic void setDeadline(double seconds)
AnyRpcClientContextsetDeadline in interface AnyRpcClientContextpublic void startCancel()
startCancel in interface AnyRpcClientContextCopyright © 2022. All rights reserved.