Class GRpcExceptionHandlerInterceptor
- java.lang.Object
-
- org.lognet.springboot.grpc.recovery.GRpcExceptionHandlerInterceptor
-
- All Implemented Interfaces:
io.grpc.ServerInterceptor,org.springframework.core.Ordered
public class GRpcExceptionHandlerInterceptor extends java.lang.Object implements io.grpc.ServerInterceptor, org.springframework.core.Ordered
-
-
Constructor Summary
Constructors Constructor Description GRpcExceptionHandlerInterceptor(GRpcExceptionHandlerMethodResolver methodResolver, FailureHandlingSupport failureHandlingSupport, GRpcServerProperties serverProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()<ReqT,RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
-
-
Constructor Detail
-
GRpcExceptionHandlerInterceptor
public GRpcExceptionHandlerInterceptor(GRpcExceptionHandlerMethodResolver methodResolver, FailureHandlingSupport failureHandlingSupport, GRpcServerProperties serverProperties)
-
-
Method Detail
-
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:
interceptCallin interfaceio.grpc.ServerInterceptor
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-