Package | Description |
---|---|
org.springframework.amqp.core |
Provides core classes for the spring AMQP abstraction.
|
Modifier and Type | Method and Description |
---|---|
MessageBuilder |
MessageBuilder.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.
|
Copyright © 2019. All rights reserved.