public class JmsPublishConsume extends Object
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamically| Constructor and Description |
|---|
JmsPublishConsume() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> |
publishConsume(JmsConfig config,
JmsConnection connection,
String destination,
MessageBuilder messageBuilder,
Boolean persistentDelivery,
Integer priority,
Long timeToLive,
TimeUnit timeToLiveUnit,
Long maximumWaitTime,
TimeUnit waitTimeUnit,
AckMode ackMode,
Long deliveryDelay,
TimeUnit deliveryDelayUnit)
Operation that allows the user to send a message to a JMS
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamically |
@OutputResolver(output=JmsOutputResolver.class) public org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> publishConsume(@UseConfig JmsConfig config, @Connection JmsConnection connection, @XmlHints(allowReferences=false) @Summary(value="The name of the Destination where the Message should be sent") String destination, @Optional @NullSafe @Summary(value="A builder for the message that will be published") MessageBuilder messageBuilder, @Optional @Summary(value="If true, the Message will be sent using the PERSISTENT JMSDeliveryMode") Boolean persistentDelivery, @Optional @Summary(value="The default JMSPriority value to be used when sending the message") Integer priority, @Optional @Summary(value="Defines the default time the message will be in the broker before it expires and is discarded") Long timeToLive, @Optional @Summary(value="Time unit to be used in the timeToLive configuration") TimeUnit timeToLiveUnit, @Optional(defaultValue="10000") @Summary(value="Maximum time to wait for a response before timeout") Long maximumWaitTime, @Optional(defaultValue="MILLISECONDS") @Summary(value="Time unit to be used in the maximumWaitTime configuration") TimeUnit waitTimeUnit, @Optional AckMode ackMode, @Optional @Summary(value="Only used by JMS 2.0. Sets the delivery delay to be applied in order to postpone the Message delivery") Long deliveryDelay, @Optional @Summary(value="Time unit to be used in the deliveryDelay configurations") TimeUnit deliveryDelayUnit) throws JmsExtensionException
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamicallyconfig - the current JmsProducerConfigconnection - the current JmsConnectiondestination - the name of the Destination where the Message should be sentmessageBuilder - the MessageBuilder used to create the Message to be sentmessageBuilder - the MessageBuilder used to create the Message to be sentpersistentDelivery - true if DeliveryMode.PERSISTENT should be usedpriority - the Message.getJMSPriority() to be settimeToLive - the time the message will be in the broker before it expires and is discardedtimeToLiveUnit - unit to be used in the timeToLive configurationsackMode - the AckMode that will be configured over the Message and SessiondeliveryDelay - Only used by JMS 2.0. Sets the delivery delay to be applied in order to postpone the Message deliverydeliveryDelayUnit - Time unit to be used in the deliveryDelay configurationsResult with the reply Message content as Result.getOutput() and its properties
and headers as Result.getAttributes()JmsExtensionException - if an error occursCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.