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,
ExchangeDefinitionParameters exchangeDefinitionParameters,
RoutingConfiguration routingConfiguration,
DeliveryMode deliveryMode,
AmqpMessageBuilder messageBuilder,
AmqpPublishParameters overrides,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalActionPublish,
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, @ParameterGroup(name="Exchange Definition Configuration") ExchangeDefinitionParameters exchangeDefinitionParameters, @ParameterGroup(name="Routing Configuration") RoutingConfiguration routingConfiguration, @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 transactionalActionPublish, @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 toexchangeDefinitionParameters - The exchange to use for exchange declaration in case there is no exchange with the
exchangeNameroutingConfiguration - Configuration for 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 overridestransactionalActionPublish - 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 © 2025 MuleSoft, Inc.. All rights reserved.