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,
JmsPublishParameters overrides)
Operation that allows the user to send a
Message to a JMS {@link Destination |
@Throws(value=JmsPublisherErrorTypeProvider.class) 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, @ParameterGroup(name="Publish Configuration") JmsPublishParameters overrides) 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 configurationsJmsPublishException - if an error occursJmsExtensionExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.