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 Object
implements io.grpc.ServerInterceptor, org.springframework.core.Ordered
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionGRpcExceptionHandlerInterceptor(GRpcExceptionHandlerMethodResolver methodResolver, FailureHandlingSupport failureHandlingSupport, GRpcServerProperties serverProperties) -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()<ReqT, RespT>
io.grpc.ServerCall.Listener<ReqT>interceptCall(io.grpc.ServerCall<ReqT,RespT> call, io.grpc.Metadata headers, io.grpc.ServerCallHandler<ReqT,RespT> next)
-
Field Details
-
EXCEPTION_HANDLED
-
-
Constructor Details
-
GRpcExceptionHandlerInterceptor
public GRpcExceptionHandlerInterceptor(GRpcExceptionHandlerMethodResolver methodResolver, FailureHandlingSupport failureHandlingSupport, GRpcServerProperties serverProperties)
-
-
Method Details
-
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
-