Package com.oracle.coherence.grpc.proxy
Class ServerLoggingInterceptor
java.lang.Object
com.oracle.coherence.grpc.proxy.ServerLoggingInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
A gRPC server interceptor that will log messages on the server.
This is useful for debugging but should not be used in production as it will log
the contents of messages.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Field Details
-
TRACE_ID_KEY
-
-
Constructor Details
-
ServerLoggingInterceptor
public ServerLoggingInterceptor()
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next) - Specified by:
interceptCall
in interfaceio.grpc.ServerInterceptor
-