public class TransactionalChannelProvider extends Object implements ChannelProvider
ChannelProvider strategy for transactional channels.| Modifier and Type | Method and Description |
|---|---|
MuleAmqpChannel |
getChannel(AmqpTransactionalConnection connection,
AmqpChannelManager channelManager,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
QualityOfService qualityOfService,
boolean singleMessageChannel)
Gets a transactional channel that bypasses the pool.
|
static TransactionalChannelProvider |
getInstance()
Retrieves the singleton instance of
TransactionalChannelProvider. |
public static TransactionalChannelProvider getInstance()
TransactionalChannelProvider.TransactionalChannelProvider.public MuleAmqpChannel getChannel(AmqpTransactionalConnection connection, AmqpChannelManager channelManager, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, QualityOfService qualityOfService, boolean singleMessageChannel) throws IOException
getChannel in interface ChannelProviderconnection - The AMQP connection.channelManager - The channel manager responsible for managing channel lifecycles.transactionalAction - The transactional action (unused, always transactional).qualityOfService - Quality of Service (QoS) settings (unused for transactional channels).singleMessageChannel - Whether the channel is intended for single-message operations.MuleAmqpChannel for transactional operations.IOException - If channel creation fails.IllegalStateException - If channel creation fails after IOException handling.Copyright © 2025 MuleSoft, Inc.. All rights reserved.