Uses of Class
org.springframework.amqp.core.MessageBuilder
Package
Description
Provides core classes for the spring AMQP abstraction.
-
Uses of MessageBuilder in org.springframework.amqp.core
Modifier and TypeMethodDescriptionMessageBuilder.andProperties
(MessageProperties properties) Makes this builder's properties builder use a reference to properties.static MessageBuilder
MessageBuilder.fromClonedMessage
(Message message) The final message will have a copy of the message body, the MessageProperties will be cloned (top level only).static MessageBuilder
MessageBuilder.fromMessage
(Message message) The final message body will be a direct reference to the message body, the MessageProperties will be a shallow copy.static MessageBuilder
MessageBuilder.withBody
(byte[] body) The final message body will be a direct reference to 'body'.static MessageBuilder
MessageBuilder.withBody
(byte[] body, int from, int to) The final message body will be a new array containing the byte range from 'body'.static MessageBuilder
MessageBuilder.withClonedBody
(byte[] body) The final message body will be a copy of 'body' in a new array.