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 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:
      interceptCall in interface io.grpc.ClientInterceptor