ReqT
- gRPC request typeRespT
- gRPC response typepublic class GrpcAdviceExceptionListener<ReqT,RespT> extends ForwardingServerCallListener.SimpleForwardingServerCallListener<ReqT>
onHalfClose()
, it is being handled by invoking annotated methods with
@GrpcExceptionHandler
. On successful invocation proper exception handling is done.
Note: In case of raised exceptions by implementation a Status.INTERNAL
is returned in
handleThrownExceptionByImplementation(Throwable)
.
GrpcAdviceExceptionHandler
ForwardingServerCallListener.SimpleForwardingServerCallListener<ReqT>
Modifier | Constructor and Description |
---|---|
protected |
GrpcAdviceExceptionListener(ServerCall.Listener<ReqT> delegate,
ServerCall<ReqT,RespT> serverCall,
GrpcAdviceExceptionHandler grpcAdviceExceptionHandler) |
Modifier and Type | Method and Description |
---|---|
void |
onHalfClose() |
delegate
onMessage
protected GrpcAdviceExceptionListener(ServerCall.Listener<ReqT> delegate, ServerCall<ReqT,RespT> serverCall, GrpcAdviceExceptionHandler grpcAdviceExceptionHandler)
public void onHalfClose()
onHalfClose
in class ForwardingServerCallListener.SimpleForwardingServerCallListener<ReqT>