Class PhysicalTenantInterceptor

java.lang.Object
io.camunda.client.impl.PhysicalTenantInterceptor
All Implemented Interfaces:
io.grpc.ClientInterceptor

public final class PhysicalTenantInterceptor extends Object implements io.grpc.ClientInterceptor
Sets the Camunda-Physical-Tenant gRPC metadata header on every outgoing call so the gateway can route the request to the correct physical tenant partition.
  • Constructor Details

    • PhysicalTenantInterceptor

      public PhysicalTenantInterceptor(String physicalTenantId)
  • 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