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.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Message | preSend(Message<?> message, MessageChannel channel)
Overrides default org. |
| ImmutableMessageChannelInterceptor | back to summary |
|---|---|
| public ImmutableMessageChannelInterceptor() | |
| preSend | back to summary |
|---|---|
| public Message Overrides default org. Doc from org. Invoked before the Message is actually sent to the channel.
This allows for modification of the Message if necessary.
If this method returns
| |