Class ConditionalClientInterceptor
- java.lang.Object
-
- io.grpc.gcp.observability.interceptors.ConditionalClientInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor
@Internal public final class ConditionalClientInterceptor extends java.lang.Object implements io.grpc.ClientInterceptorA client interceptor that conditionally calls a delegated interceptor.
-
-
Constructor Summary
Constructors Constructor Description ConditionalClientInterceptor(io.grpc.ClientInterceptor delegate, java.util.function.BiPredicate<io.grpc.MethodDescriptor<?,?>,io.grpc.CallOptions> predicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-