Class GrpcClientContext
java.lang.Object
com.google.apphosting.runtime.grpc.GrpcClientContext
- All Implemented Interfaces:
AnyRpcClientContext
An
AnyRpcClientContext that will record the details of a gRPC call.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
voidcall(io.grpc.Channel channel, io.grpc.MethodDescriptor<ReqT, RespT> method, ReqT request, io.grpc.stub.StreamObserver<RespT> responseObserver) intlongcom.google.apphosting.base.protos.Status.StatusProtovoidsetDeadline(double seconds) Set the deadline that will be applied to the RPC call made using this context.void
-
Constructor Details
-
GrpcClientContext
-
-
Method Details
-
call
public <ReqT,RespT> void call(io.grpc.Channel channel, io.grpc.MethodDescriptor<ReqT, RespT> method, ReqT request, io.grpc.stub.StreamObserver<RespT> responseObserver) -
getStartTimeMillis
public long getStartTimeMillis()- Specified by:
getStartTimeMillisin interfaceAnyRpcClientContext
-
getException
- Specified by:
getExceptionin interfaceAnyRpcClientContext
-
getApplicationError
public int getApplicationError()- Specified by:
getApplicationErrorin interfaceAnyRpcClientContext
-
getErrorDetail
- Specified by:
getErrorDetailin interfaceAnyRpcClientContext
-
getStatus
public com.google.apphosting.base.protos.Status.StatusProto getStatus()- Specified by:
getStatusin interfaceAnyRpcClientContext
-
setDeadline
public void setDeadline(double seconds) Description copied from interface:AnyRpcClientContextSet the deadline that will be applied to the RPC call made using this context. If this method is never called, there is no deadline.- Specified by:
setDeadlinein interfaceAnyRpcClientContext
-
startCancel
public void startCancel()- Specified by:
startCancelin interfaceAnyRpcClientContext
-