Package com.oracle.coherence.grpc.proxy
Class GrpcMetricsInterceptor
- java.lang.Object
-
- com.oracle.coherence.grpc.proxy.GrpcMetricsInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor
public class GrpcMetricsInterceptor extends Object implements io.grpc.ServerInterceptor
AServerInterceptorthat enables capturing of gRPC metrics.- Author:
- Jonathan Knight 2020.10.14
-
-
Constructor Summary
Constructors Constructor Description GrpcMetricsInterceptor(GrpcProxyMetrics metrics)Create aGrpcMetricsInterceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()<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 Detail
-
GrpcMetricsInterceptor
public GrpcMetricsInterceptor(GrpcProxyMetrics metrics)
Create aGrpcMetricsInterceptor.- Parameters:
metrics- theGrpcProxyMetricsthat tracks requests- Throws:
NullPointerException- if the metrics parameter is null
-
-