public class ChannelProviderFactory extends Object
OperationTransactionalAction enum.
Uses strategy pattern to route to the correct ChannelProvider implementation.
Each provider implementation handles its own channel creation/retrieval logic.| Constructor and Description |
|---|
ChannelProviderFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ChannelProvider |
getProvider(AmqpTransactionalConnection connection,
org.mule.runtime.api.scheduler.SchedulerService schedulerService,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
AmqpChannelManager amqpChannelManager)
Gets the appropriate
ChannelProvider based on the OperationTransactionalAction enum. |
public static ChannelProvider getProvider(AmqpTransactionalConnection connection, org.mule.runtime.api.scheduler.SchedulerService schedulerService, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, AmqpChannelManager amqpChannelManager)
ChannelProvider based on the OperationTransactionalAction enum.
This method encapsulates the strategy selection logic. Callers should then call getChannel() directly
on the returned provider, as each provider implementation handles its own channel creation logic.connection - The AMQP connection.schedulerService - Mule's scheduler service.transactionalAction - The enum value that determines the strategy.ChannelProvider implementation.Copyright © 2025 MuleSoft, Inc.. All rights reserved.