spring-framework / org.springframework.messaging.support / ImmutableMessageChannelInterceptor / <init>

<init>

ImmutableMessageChannelInterceptor()

A simpler interceptor that calls 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.

Author
Rossen Stoyanchev

Since
4.1.2