Class MutableMessageBuilder<T>

java.lang.Object
org.springframework.integration.support.AbstractIntegrationMessageBuilder<T>
org.springframework.integration.support.MutableMessageBuilder<T>
Type Parameters:
T - the payload type.

public final class MutableMessageBuilder<T> extends AbstractIntegrationMessageBuilder<T>
Specialized message builder that can be used within a component to avoid the overhead of having to build multiple messages for mutations within that component.

IMPORTANT: Mutable messages may share state (such as message headers); such messages should never be exposed to other components or undesirable side-effects may result.

It is generally recommended that messages transferred between components should always be immutable unless great care is taken with their use.

Since:
4.0
Author:
Gary Russell, Artem Bilan