Class DynamicServerInterceptor

java.lang.Object
ru.tinkoff.kora.grpc.DynamicServerInterceptor
All Implemented Interfaces:
io.grpc.ServerInterceptor, ru.tinkoff.kora.application.graph.RefreshListener

public final class DynamicServerInterceptor extends Object implements io.grpc.ServerInterceptor, ru.tinkoff.kora.application.graph.RefreshListener
  • Constructor Details

    • DynamicServerInterceptor

      public DynamicServerInterceptor(ru.tinkoff.kora.application.graph.ValueOf<io.grpc.ServerInterceptor> interceptor)
  • Method Details

    • 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
    • graphRefreshed

      public void graphRefreshed()
      Specified by:
      graphRefreshed in interface ru.tinkoff.kora.application.graph.RefreshListener