Class DefaultJmsResponseMessageBuilder
java.lang.Object
org.mule.jms.commons.api.message.DefaultJmsMessageBuilder<DefaultJmsDestination>
org.mule.jms.commons.internal.source.DefaultJmsResponseMessageBuilder
- All Implemented Interfaces:
JmsMessageBuilder<DefaultJmsDestination>,PublisherParameters,JmsResponseMessageBuilder<DefaultJmsDestination>
public class DefaultJmsResponseMessageBuilder
extends DefaultJmsMessageBuilder<DefaultJmsDestination>
implements JmsResponseMessageBuilder<DefaultJmsDestination>
Enables the creation of an outgoing
Message along with the response configuration. Users must use this builder to
create a message response instance.- Since:
- 1.0
-
Field Summary
Fields inherited from class org.mule.jms.commons.api.message.DefaultJmsMessageBuilder
BODY_CONTENT_TYPE_JMS_PROPERTY, BODY_ENCODING_JMS_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOnly used by JMS 2.0.Time unit to be used in the deliveryDelay configurationsThe default JMSPriority value to be used when sending the messageReturns the Request Reply Pattern to useorg.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategyOptions on whether to include an outbound correlation id or notDefines the default time the message will be in the broker before it expires and is discardedTime unit to be used in the timeToLive configurationsbooleanIf true; the Message will be flagged to avoid generating its MessageIDbooleanIf true; the Message will be flagged to avoid generating its sent TimestampbooleanWhether or not the delivery should be done with a persistent configurationbooleanIf true no automatic response will be sent in case of Jms replyTo header presence.Methods inherited from class org.mule.jms.commons.api.message.DefaultJmsMessageBuilder
build, getBody, getCorrelationId, getJmsType, getJmsxProperties, getOutboundContentType, getOutboundEncoding, getProperties, getReplyTo, isSendContentType, isSendEncoding, setBody, setCorrelationId, setJmsType, setJmsxProperties, setOutboundContentType, setOutboundEncoding, setProperties, setReplyTo, setSendContentType, setSendEncodingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mule.jms.commons.api.message.JmsMessageBuilder
build, getBody, getCorrelationId, getJmsType, getJmsxProperties, getOutboundContentType, getOutboundEncoding, getProperties, getReplyTo, isSendContentType, isSendEncoding
-
Constructor Details
-
DefaultJmsResponseMessageBuilder
public DefaultJmsResponseMessageBuilder()
-
-
Method Details
-
isPersistentDelivery
public boolean isPersistentDelivery()Description copied from interface:JmsResponseMessageBuilderWhether or not the delivery should be done with a persistent configuration- Specified by:
isPersistentDeliveryin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
isPersistentDeliveryin interfacePublisherParameters
-
getPriority
Description copied from interface:JmsResponseMessageBuilderThe default JMSPriority value to be used when sending the message- Specified by:
getPriorityin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
getPriorityin interfacePublisherParameters
-
getTimeToLive
Description copied from interface:JmsResponseMessageBuilderDefines the default time the message will be in the broker before it expires and is discarded- Specified by:
getTimeToLivein interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
getTimeToLivein interfacePublisherParameters
-
getTimeToLiveUnit
Description copied from interface:JmsResponseMessageBuilderTime unit to be used in the timeToLive configurations- Specified by:
getTimeToLiveUnitin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
getTimeToLiveUnitin interfacePublisherParameters
-
isDisableMessageId
public boolean isDisableMessageId()Description copied from interface:JmsResponseMessageBuilderIf true; the Message will be flagged to avoid generating its MessageID- Specified by:
isDisableMessageIdin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
isDisableMessageIdin interfacePublisherParameters
-
isDisableMessageTimestamp
public boolean isDisableMessageTimestamp()Description copied from interface:JmsResponseMessageBuilderIf true; the Message will be flagged to avoid generating its sent Timestamp- Specified by:
isDisableMessageTimestampin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
isDisableMessageTimestampin interfacePublisherParameters
-
getDeliveryDelay
Description copied from interface:JmsResponseMessageBuilderOnly used by JMS 2.0. Sets the delivery delay to be applied in order to postpone the Message delivery- Specified by:
getDeliveryDelayin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
getDeliveryDelayin interfacePublisherParameters
-
getDeliveryDelayUnit
Description copied from interface:JmsResponseMessageBuilderTime unit to be used in the deliveryDelay configurations- Specified by:
getDeliveryDelayUnitin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Specified by:
getDeliveryDelayUnitin interfacePublisherParameters
-
getSendCorrelationId
public org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy getSendCorrelationId()Description copied from interface:JmsResponseMessageBuilderOptions on whether to include an outbound correlation id or not- Specified by:
getSendCorrelationIdin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>
-
getRequestReplyPattern
Description copied from interface:JmsResponseMessageBuilderReturns the Request Reply Pattern to use- Specified by:
getRequestReplyPatternin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>
-
isReplyToIgnored
public boolean isReplyToIgnored()Description copied from interface:JmsResponseMessageBuilderIf true no automatic response will be sent in case of Jms replyTo header presence.- Specified by:
isReplyToIgnoredin interfaceJmsResponseMessageBuilder<DefaultJmsDestination>- Returns:
- status of the Jms replyTo ignore flag.
-