ThrottlingClientInterceptor (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc.async

Class ThrottlingClientInterceptor

  • java.lang.Object
    • com.google.cloud.bigtable.grpc.async.ThrottlingClientInterceptor
  • All Implemented Interfaces:
    io.grpc.ClientInterceptor


    public class ThrottlingClientInterceptor
    extends Object
    implements io.grpc.ClientInterceptor
    Throttles requests based on ResourceLimiter
    • Constructor Detail

      • ThrottlingClientInterceptor

        public ThrottlingClientInterceptor(ResourceLimiter resourceLimiter)
    • 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 delegateChannel)
        Specified by:
        interceptCall in interface io.grpc.ClientInterceptor