HeaderInterceptor (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.grpc.io

Class HeaderInterceptor

  • All Implemented Interfaces:
    io.grpc.ClientInterceptor
    Direct Known Subclasses:
    GoogleCloudResourcePrefixInterceptor


    public class HeaderInterceptor
    extends Object
    implements io.grpc.ClientInterceptor
    Adds a header ("google-cloud-resource-prefix") that usually contains a fully qualified instance or table name.
    Since:
    0.9.2
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • HeaderInterceptor

        public HeaderInterceptor(io.grpc.Metadata.Key<String> key,
                                 String defaultValue)
        Constructor for GoogleCloudResourcePrefixInterceptor.
        Parameters:
        defaultValue - a String object.
    • 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
      • updateHeaders

        public void updateHeaders(io.grpc.Metadata headers)


このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...

Cloud Bigtable Documentation