public final class JmsPublish extends Object
Destination| Constructor and Description |
|---|
JmsPublish() |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(JmsConfig config,
JmsConnection connection,
String destination,
DestinationType destinationType,
MessageBuilder messageBuilder,
Boolean persistentDelivery,
Integer priority,
Long timeToLive,
TimeUnit timeToLiveUnit,
Long deliveryDelay,
TimeUnit deliveryDelayUnit)
Operation that allows the user to send a
Message to a JMS {@link Destination |
public void publish(@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(defaultValue="QUEUE") @Summary(value="The type of the Destination")
DestinationType destinationType,
@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 configurations")
TimeUnit timeToLiveUnit,
@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
Message to a JMS {@link Destinationconfig - the current JmsProducerConfigconnection - the current JmsConnectiondestination - the name of the Destination where the Message should be senttype - the DestinationType of the destinationmessageBuilder - 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 configurationsdeliveryDelay - 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 configurationsJmsExtensionException - if an error occursCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.