public class OrderedServerInterceptor
extends java.lang.Object
implements io.grpc.ServerInterceptor, io.micronaut.core.order.Ordered
ServerInterceptor implementation which allows ordering and simply passes all
calls to a delegate interceptor.| Constructor and Description |
|---|
OrderedServerInterceptor(io.grpc.ServerInterceptor delegate,
int order)
Constructs an instance of this interceptor with the provided delegate interceptor and order.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder()
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 to
delegate interceptor. |
public OrderedServerInterceptor(io.grpc.ServerInterceptor delegate,
int order)
delegate - the interceptor to delegate toorder - the order numberpublic <T,S> io.grpc.ServerCall.Listener<T> interceptCall(io.grpc.ServerCall<T,S> call,
io.grpc.Metadata headers,
io.grpc.ServerCallHandler<T,S> next)
delegate interceptor.
interceptCall in interface io.grpc.ServerInterceptorpublic int getOrder()
getOrder in interface io.micronaut.core.order.Ordered