Class GrpcClientContextPropagationInterceptor.Restoring

java.lang.Object
io.micronaut.grpc.client.propagation.GrpcClientContextPropagationInterceptor.Restoring
All Implemented Interfaces:
io.grpc.ClientInterceptor, io.micronaut.core.order.Ordered
Enclosing class:
GrpcClientContextPropagationInterceptor

@Internal @Singleton @Requires(property="grpc.client.context-propagation.enabled", value="true", defaultValue="true") public static final class GrpcClientContextPropagationInterceptor.Restoring extends Object implements io.grpc.ClientInterceptor, io.micronaut.core.order.Ordered
Restores the captured context around the response callbacks coming from the transport. Runs last, so that it wraps the listeners of all other interceptors.
Since:
5.3.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    <ReqT,RespT>
    io.grpc.ClientCall<ReqT,RespT>
    interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Restoring

      public Restoring()
  • 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
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered