Package org.springframework.amqp.core
Class MessagePropertiesBuilder
java.lang.Object
org.springframework.amqp.core.MessageBuilderSupport<MessageProperties>
org.springframework.amqp.core.MessagePropertiesBuilder
Builds a Spring AMQP MessageProperties object using a fluent API.
- Since:
- 1.3
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
copyProperties
(MessageProperties properties) static MessagePropertiesBuilder
fromClonedProperties
(MessageProperties properties) Performs a shallow copy of the properties for the initial value.static MessagePropertiesBuilder
fromProperties
(MessageProperties properties) Initializes the builder with the supplied properties; the same object will be returned bybuild()
.static MessagePropertiesBuilder
Returns a builder with an initial set of properties.Methods inherited from class org.springframework.amqp.core.MessageBuilderSupport
buildProperties, copyHeaders, copyHeadersIfAbsent, removeHeader, removeHeaders, setAppId, setAppIdIfAbsent, setClusterId, setClusterIdIfAbsent, setContentEncoding, setContentEncodingIfAbsent, setContentLength, setContentLengthIfAbsent, setContentType, setContentTypeIfAbsentOrDefault, setCorrelationId, setCorrelationIdIfAbsent, setDeliveryMode, setDeliveryModeIfAbsentOrDefault, setDeliveryTag, setDeliveryTagIfAbsent, setExpiration, setExpirationIfAbsent, setHeader, setHeaderIfAbsent, setMessageCount, setMessageCountIfAbsent, setMessageId, setMessageIdIfAbsent, setPriority, setPriorityIfAbsentOrDefault, setProperties, setReceivedExchange, setReceivedExchangeIfAbsent, setReceivedRoutingKey, setReceivedRoutingKeyIfAbsent, setRedelivered, setRedeliveredIfAbsent, setReplyTo, setReplyToAddress, setReplyToAddressIfAbsent, setReplyToIfAbsent, setTimestamp, setTimestampIfAbsent, setType, setTypeIfAbsent, setUserId, setUserIdIfAbsent
-
Method Details
-
newInstance
Returns a builder with an initial set of properties.- Returns:
- The builder.
-
fromProperties
Initializes the builder with the supplied properties; the same object will be returned bybuild()
.- Parameters:
properties
- The properties.- Returns:
- The builder.
-
fromClonedProperties
Performs a shallow copy of the properties for the initial value.- Parameters:
properties
- The properties.- Returns:
- The builder.
-
copyProperties
- Overrides:
copyProperties
in classMessageBuilderSupport<MessageProperties>
-
build
- Specified by:
build
in classMessageBuilderSupport<MessageProperties>
-