public final class AmqpPublish extends Object
AmqpMessage to a given exchange| Constructor and Description |
|---|
AmqpPublish() |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(AmqpConfig config,
AmqpTransactionalConnection connection,
String exchangeName,
ExchangeDefinition fallbackExchangeDefinition,
List<String> routingKeys,
DeliveryMode deliveryMode,
AmqpMessageBuilder messageBuilder,
AmqpPublishParameters overrides,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy sendCorrelationId,
boolean createFallbackExchange,
org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo)
Operation that allows the user to publish a single
AmqpMessage to a given exchange |
@Throws(value=AmqpPublishErrorTypeProvider.class) public void publish(@Config AmqpConfig config, @Connection AmqpTransactionalConnection connection, @Optional(defaultValue="") @Summary(value="The name of the exchange to publish the message to") String exchangeName, @Optional @Summary(value="The exchange to use for exchange declaration in case there is no exchange with the exchangeName") @Expression(value=NOT_SUPPORTED) ExchangeDefinition fallbackExchangeDefinition, @Optional @Summary(value="List of routing keys") List<String> routingKeys, @ConfigOverride @Optional @Summary(value="The delivery mode to use when publishing to the AMQP broker") DeliveryMode deliveryMode, @Summary(value="A builder for the message that will be published") @ParameterGroup(name="Message",showInDsl=true) AmqpMessageBuilder messageBuilder, @ParameterGroup(name="Publish Configuration") AmqpPublishParameters overrides, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, @ConfigOverride org.mule.runtime.extension.api.runtime.parameter.OutboundCorrelationStrategy sendCorrelationId, @ConfigOverride boolean createFallbackExchange, org.mule.runtime.extension.api.runtime.parameter.CorrelationInfo correlationInfo) throws AmqpExtensionException
AmqpMessage to a given exchangeconfig - the current AmqpConfigconnection - the current AmqpTransactionalConnectionexchangeName - The name of the exchange to publish the message tofallbackExchangeDefinition - The exchange to use for exchange declaration in case there is no exchange with the
exchangeNameroutingKeys - List of routing keysdeliveryMode - The delivery mode to use when publishing to the AMQP brokermessageBuilder - the AmqpMessageBuilder used to create the Message to be sentoverrides - the configuration overridestransactionalAction - information of the current transaction in case it existssendCorrelationId - options on whether to include an outbound correlation id or notcorrelationInfo - the current message's correlation infoAmqpExtensionException - if an error occursCopyright © 2023 MuleSoft, Inc.. All rights reserved.