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
ConstructorsConstructorDescriptionGrpcMetricsInterceptor(GrpcProxyMetrics metrics) Create aGrpcMetricsInterceptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()<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- theGrpcProxyMetricsthat 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:
interceptCallin interfaceio.grpc.ServerInterceptor
-
equals
-
hashCode
public int hashCode()
-