com.google.cloud.bigtable.grpc.io
Class HeaderInterceptor
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.io.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 Summary
Constructors Constructor and Description HeaderInterceptor(io.grpc.Metadata.Key<String> key, String defaultValue)
Constructor for GoogleCloudResourcePrefixInterceptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description <ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
String
toString()
void
updateHeaders(io.grpc.Metadata headers)
-
-
-
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 interfaceio.grpc.ClientInterceptor
-
updateHeaders
public void updateHeaders(io.grpc.Metadata headers)
-
-