Create a new message with the given payload. @param payload the message payload (never {@code null})
Create a new message with the given payload and headers. The content of the given header map is copied. @param payload the message payload (never {@code null}) @param headers message headers to use for initialization
A constructor with the {@link MessageHeaders} instance to use. <p><strong>Note:</strong> the given {@code MessageHeaders} instance is used directly in the new message, i.e. it is not copied. @param payload the message payload (never {@code null}) @param headers message headers
An implementation of {@link Message} with a generic payload. Once created, a GenericMessage is immutable.
@author Mark Fisher @since 4.0 @param (T) the payload type @see MessageBuilder