RSocketInterceptor is that it allows intercepting the initial and
terminal phases on every individual request.Note
, if any of the invocations will rise a runtime exception, this exception will be
caught and be propagated to reactor.
| Modifier and Type | Method and Description |
|---|---|
| public void | onCancel(int
used by this request streamId, FrameType of the request. Must be one of the following types requestType)FrameType#REQUEST_FNF, FrameType#REQUEST_RESPONSE, FrameType#REQUEST_STREAM or FrameType#REQUEST_CHANNELMethod which is being invoked once a successfully accepted request is cancelled. |
| public void | onReject(Throwable
exception which causes rejection of a particular request rejectionReason, FrameType of the request. Must be one of the following types requestType, ByteBuf FrameType#REQUEST_FNF, FrameType#REQUEST_RESPONSE, FrameType#REQUEST_STREAM or FrameType#REQUEST_CHANNELtaken from the initial frame metadata)Method which is being invoked on the request rejection. |
| public void | onStart(int
used for the request streamId, FrameType of the request. Must be one of the following types requestType, ByteBuf FrameType#REQUEST_FNF, FrameType#REQUEST_RESPONSE, FrameType#REQUEST_STREAM or FrameType#REQUEST_CHANNELtaken from the initial frame metadata)Method which is being invoked on successful acceptance and start of a request. |
| public void | onTerminate(int
used by this request streamId, FrameType of the request. Must be one of the following types requestType, Throwable FrameType#REQUEST_FNF, FrameType#REQUEST_RESPONSE, FrameType#REQUEST_STREAM or FrameType#REQUEST_CHANNELwith which this finished has terminated. Must be one of the following signals t)Method which is being invoked once a successfully accepted request is terminated. |
| onCancel | back to summary |
|---|---|
| public void onCancel(int streamId, FrameType requestType) Method which is being invoked once a successfully accepted request is cancelled. This method
can be invoked only after the
| |
| onReject | back to summary |
|---|---|
| public void onReject(Throwable rejectionReason, FrameType requestType, ByteBuf metadata) Method which is being invoked on the request rejection. This method is being called only if the
actual request can not be started and is called instead of the
| |
| onStart | back to summary |
|---|---|
| public void onStart(int streamId, FrameType requestType, ByteBuf metadata) Method which is being invoked on successful acceptance and start of a request.
| |
| onTerminate | back to summary |
|---|---|
| public void onTerminate(int streamId, FrameType requestType, Throwable t) Method which is being invoked once a successfully accepted request is terminated. This method
can be invoked only after the
| |