public class ImmutableMessageChannelInterceptor extends Object implements ChannelInterceptor
MessageHeaderAccessor.setImmutable()
on the headers of messages passed through the preSend method.
When configured as the last interceptor in a chain, it allows the component sending the message to leave headers mutable for interceptors to modify prior to the message actually being sent and exposed to concurrent access.
| Constructor and Description |
|---|
ImmutableMessageChannelInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Message<?> |
preSend(Message<?> message,
MessageChannel channel)
Invoked before the Message is actually sent to the channel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterReceiveCompletion, afterSendCompletion, postReceive, postSend, preReceivepublic Message<?> preSend(Message<?> message, MessageChannel channel)
ChannelInterceptornull then the actual
send invocation will not occur.preSend in interface ChannelInterceptor