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 -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()<ReqT,RespT>
io.grpc.ClientCall<ReqT, RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-
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:
interceptCallin interfaceio.grpc.ClientInterceptor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered
-