private static class OrderedMessageSender.CallbackInterceptor extends java.lang.Object implements ExecutorChannelInterceptor
Modifier | Constructor and Description |
---|---|
private |
CallbackInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
afterMessageHandled(Message<?> msg,
MessageChannel ch,
MessageHandler handler,
java.lang.Exception ex)
Invoked inside the
Runnable submitted to the Executor after calling
the target MessageHandler regardless of the outcome (i.e. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeHandle
afterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceive, preSend
public void afterMessageHandled(Message<?> msg, MessageChannel ch, MessageHandler handler, @Nullable java.lang.Exception ex)
ExecutorChannelInterceptor
Runnable
submitted to the Executor after calling
the target MessageHandler regardless of the outcome (i.e. Exception raised
or not) thus allowing for proper resource cleanup.
Note that this will be invoked only if beforeHandle successfully completed
and returned a Message, i.e. it did not return null
.
afterMessageHandled
in interface ExecutorChannelInterceptor
msg
- the message handledch
- the channel on which the message was sent tohandler
- the target handler that handled the messageex
- any exception that may been raised by the handler