Package com.oracle.coherence.grpc.proxy
Class GrpcMetricsInterceptor
java.lang.Object
com.oracle.coherence.grpc.proxy.GrpcMetricsInterceptor
- All Implemented Interfaces:
io.grpc.ServerInterceptor
A
ServerInterceptor
that enables capturing of gRPC metrics.- Author:
- Jonathan Knight 2020.10.14
-
Constructor Summary
ConstructorDescriptionGrpcMetricsInterceptor
(GrpcProxyMetrics metrics) Create aGrpcMetricsInterceptor
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
<ReqT,
RespT>
io.grpc.ServerCall.Listener<ReqT> interceptCall
(io.grpc.ServerCall<ReqT, RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT, RespT> next)
-
Constructor Details
-
GrpcMetricsInterceptor
Create aGrpcMetricsInterceptor
.- Parameters:
metrics
- theGrpcProxyMetrics
that tracks requests- Throws:
NullPointerException
- if the metrics parameter is null
-
-
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
-
equals
-
hashCode
public int hashCode()
-