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
AServerInterceptor
that 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 boolean
equals(Object o)
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 Detail
-
GrpcMetricsInterceptor
public GrpcMetricsInterceptor(GrpcProxyMetrics metrics)
Create aGrpcMetricsInterceptor
.- Parameters:
metrics
- theGrpcProxyMetrics
that tracks requests- Throws:
NullPointerException
- if the metrics parameter is null
-
-