GoogleCloudResourcePrefixInterceptor (Cloud Bigtable HBase Client for Java 0.9.7.1 API)

com.google.cloud.bigtable.grpc.io

Class GoogleCloudResourcePrefixInterceptor

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


    public class GoogleCloudResourcePrefixInterceptor
    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
    • 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

      • 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)


Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Bigtable Documentation