Class OrderedServerInterceptor
- java.lang.Object
-
- io.micronaut.grpc.server.interceptor.OrderedServerInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor,io.micronaut.core.order.Ordered
public class OrderedServerInterceptor extends java.lang.Object implements io.grpc.ServerInterceptor, io.micronaut.core.order.OrderedAServerInterceptorimplementation which allows ordering and simply passes all calls to a delegate interceptor.- Since:
- 2.0.2
-
-
Constructor Summary
Constructors Constructor Description OrderedServerInterceptor(io.grpc.ServerInterceptor delegate, int order)Constructs an instance of this interceptor with the provided delegate interceptor and order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()Get the order in which this interceptor should execute in the interceptor chain.<T,S>
io.grpc.ServerCall.Listener<T>interceptCall(io.grpc.ServerCall<T,S> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<T,S> next)Delegates interceptor logic todelegateinterceptor.
-
-
-
Method Detail
-
interceptCall
public <T,S> io.grpc.ServerCall.Listener<T> interceptCall(io.grpc.ServerCall<T,S> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<T,S> next)Delegates interceptor logic todelegateinterceptor.- Specified by:
interceptCallin interfaceio.grpc.ServerInterceptor
-
getOrder
public int getOrder()
Get the order in which this interceptor should execute in the interceptor chain.- Specified by:
getOrderin interfaceio.micronaut.core.order.Ordered- Returns:
- the order
-
-