@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/2861") @ThreadSafe public abstract class ServerStreamTracer extends StreamTracer
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerStreamTracer.Factory |
static class |
ServerStreamTracer.ServerCallInfo<ReqT,RespT>
A data class with info about the started
ServerCall. |
| Constructor and Description |
|---|
ServerStreamTracer() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.Context |
filterContext(io.grpc.Context context)
Called before the interceptors and the call handlers and make changes to the Context object
if needed.
|
void |
serverCallStarted(ServerCall<?,?> call)
Deprecated.
Implement
serverCallStarted(ServerCallInfo) instead. This method will be
removed in a future release of gRPC. |
void |
serverCallStarted(ServerStreamTracer.ServerCallInfo<?,?> callInfo)
Called when
ServerCall is created. |
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosedpublic io.grpc.Context filterContext(io.grpc.Context context)
public void serverCallStarted(ServerStreamTracer.ServerCallInfo<?,?> callInfo)
ServerCall is created. This is for the tracer to access information about
the ServerCall. Called after filterContext(io.grpc.Context) and before the application call
handler.@Deprecated public void serverCallStarted(ServerCall<?,?> call)
serverCallStarted(ServerCallInfo) instead. This method will be
removed in a future release of gRPC.ServerCall is created. This is for the tracer to access information about
the ServerCall. Called after filterContext(io.grpc.Context) and before the application call
handler.