Class ConditionalClientInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor

    @Internal
    public final class ConditionalClientInterceptor
    extends java.lang.Object
    implements io.grpc.ClientInterceptor
    A 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConditionalClientInterceptor

        public ConditionalClientInterceptor​(io.grpc.ClientInterceptor delegate,
                                            java.util.function.BiPredicate<io.grpc.MethodDescriptor<?,​?>,​io.grpc.CallOptions> predicate)
    • Method Detail

      • interceptCall

        public <ReqT,​RespT> io.grpc.ClientCall<ReqT,​RespT> interceptCall​(io.grpc.MethodDescriptor<ReqT,​RespT> method,
                                                                                     io.grpc.CallOptions callOptions,
                                                                                     io.grpc.Channel next)
        Specified by:
        interceptCall in interface io.grpc.ClientInterceptor