Class DecoratedInterceptor

java.lang.Object
io.camunda.zeebe.gateway.interceptors.impl.DecoratedInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor

public final class DecoratedInterceptor extends Object implements io.grpc.ServerInterceptor
Decorates third-party interceptors in order to ensure that the thread context class loader is correctly set (required for interceptors loaded from external, isolated JARs).
  • Method Details

    • decorate

      public static DecoratedInterceptor decorate(io.grpc.ServerInterceptor interceptor)
    • interceptCall

      public <ReqT, RespT> io.grpc.ServerCall.Listener<ReqT> interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
      Specified by:
      interceptCall in interface io.grpc.ServerInterceptor