Package org.springframework.amqp.core
Class MessagePropertiesBuilder
- java.lang.Object
-
- org.springframework.amqp.core.MessageBuilderSupport<MessageProperties>
-
- org.springframework.amqp.core.MessagePropertiesBuilder
-
public final class MessagePropertiesBuilder extends MessageBuilderSupport<MessageProperties>
Builds a Spring AMQP MessageProperties object using a fluent API.- Since:
- 1.3
- Author:
- Gary Russell
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagePropertiesbuild()MessagePropertiesBuildercopyProperties(MessageProperties properties)static MessagePropertiesBuilderfromClonedProperties(MessageProperties properties)Performs a shallow copy of the properties for the initial value.static MessagePropertiesBuilderfromProperties(MessageProperties properties)Initializes the builder with the supplied properties; the same object will be returned bybuild().static MessagePropertiesBuildernewInstance()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 Detail
-
newInstance
public static MessagePropertiesBuilder newInstance()
Returns a builder with an initial set of properties.- Returns:
- The builder.
-
fromProperties
public static MessagePropertiesBuilder fromProperties(MessageProperties properties)
Initializes the builder with the supplied properties; the same object will be returned bybuild().- Parameters:
properties- The properties.- Returns:
- The builder.
-
fromClonedProperties
public static MessagePropertiesBuilder fromClonedProperties(MessageProperties properties)
Performs a shallow copy of the properties for the initial value.- Parameters:
properties- The properties.- Returns:
- The builder.
-
copyProperties
public MessagePropertiesBuilder copyProperties(MessageProperties properties)
- Overrides:
copyPropertiesin classMessageBuilderSupport<MessageProperties>
-
build
public MessageProperties build()
- Specified by:
buildin classMessageBuilderSupport<MessageProperties>
-
-