@ExperimentalApi("https://github.com/grpc/grpc-java/issues/2861") @ThreadSafe public abstract class ServerStreamTracer extends StreamTracer
Modifier and Type | Class | Description |
---|---|---|
static class |
ServerStreamTracer.Factory |
|
static class |
ServerStreamTracer.ServerCallInfo<ReqT,RespT> |
A data class with info about the started
ServerCall . |
Constructor | Description |
---|---|
ServerStreamTracer() |
Modifier and Type | Method | 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. |
void |
serverCallStarted(ServerStreamTracer.ServerCallInfo<?,?> callInfo) |
Called when
ServerCall is created. |
inboundMessage, inboundMessageRead, inboundUncompressedSize, inboundWireSize, outboundMessage, outboundMessageSent, outboundUncompressedSize, outboundWireSize, streamClosed
public 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.