Package io.stargate.sgv2.api.common.grpc
Class StargateBridgeInterceptor
java.lang.Object
io.stargate.sgv2.api.common.grpc.StargateBridgeInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
@ApplicationScoped
public class StargateBridgeInterceptor
extends Object
implements io.grpc.ClientInterceptor
ClientInterceptor that enriches request Metadata with tenant ID and cassandra token from
StargateRequestInfo.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
Constructor Details
-
StargateBridgeInterceptor
public StargateBridgeInterceptor()
-
-
Method Details
-
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:
interceptCallin interfaceio.grpc.ClientInterceptor
-