GoogleCloudResourcePrefixInterceptor (Cloud Bigtable HBase Client for Java 0.9.3-SNAPSHOT API)

com.google.cloud.bigtable.grpc.io

Class GoogleCloudResourcePrefixInterceptor

  • java.lang.Object
    • com.google.cloud.bigtable.grpc.io.GoogleCloudResourcePrefixInterceptor
  • All Implemented Interfaces:
    HeaderInterceptor


    public class GoogleCloudResourcePrefixInterceptor
    extends Object
    implements HeaderInterceptor
    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
    • Field Detail

      • GRPC_RESOURCE_PREFIX_KEY

        public static final io.grpc.Metadata.Key<String> GRPC_RESOURCE_PREFIX_KEY
        Constant GRPC_RESOURCE_PREFIX_KEY
    • Constructor Detail

      • GoogleCloudResourcePrefixInterceptor

        public GoogleCloudResourcePrefixInterceptor(String defaultValue)

        Constructor for GoogleCloudResourcePrefixInterceptor.

        Parameters:
        defaultValue - a String object.
    • Method Detail

      • updateHeaders

        public void updateHeaders(io.grpc.Metadata headers)
                           throws Exception
        Modify the headers before an RPC call is made.
        Specified by:
        updateHeaders in interface HeaderInterceptor
        Parameters:
        headers - a Metadata object.
        Throws:
        Exception - if any.


Send feedback about...

Cloud Bigtable Documentation