public class AmqpChannelManager extends Object
Channel. This is used when the InternalAckMode is configured in InternalAckMode.MANUAL| Constructor and Description |
|---|
AmqpChannelManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(String ackId)
Executes the acknowledgement on the latest
AmqpMessage associated to the Channel identified by the
ackId |
void |
bindToTransaction(com.rabbitmq.client.Channel channel) |
void |
changeTransactionStatus(TransactionStatus transactionStatus) |
MuleAmqpChannel |
createAmqpChannel(AmqpTransactionalConnection connection,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
boolean singleMessageChannel) |
MuleAmqpChannel |
createAmqpChannelWithTransactionValidation(AmqpTransactionalConnection connection,
org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction,
QualityOfService qualityOfService,
boolean singleMessageChannel) |
MuleAmqpChannel |
createNewChannel(AmqpTransactionalConnection connection,
QualityOfService qualityOfService,
boolean singleMessageChannel) |
com.rabbitmq.client.Channel |
getOrCreateTransactedChannel(AmqpTransactionalConnection connection,
Optional<com.rabbitmq.client.Channel> transactedChannel) |
Optional<com.rabbitmq.client.Channel> |
getTransactedChannel() |
TransactionInformation |
getTransactionInformation() |
TransactionStatus |
getTransactionStatus() |
void |
registerMessageForAck(String ackId,
AmqpMessage message,
com.rabbitmq.client.Channel channel)
Registers the
AmqpMessage to the Channel using the ackId in order to being able later to perform a
InternalAckMode.MANUAL ACK |
void |
reject(String ackId,
boolean requeue)
|
void |
unbindChannel() |
public void bindToTransaction(com.rabbitmq.client.Channel channel)
public void registerMessageForAck(String ackId, AmqpMessage message, com.rabbitmq.client.Channel channel)
AmqpMessage to the Channel using the ackId in order to being able later to perform a
InternalAckMode.MANUAL ACKackId - the id associated to the Channel used to create the Messagemessage - the Message to use for executing the Message#acknowledgeIllegalArgumentException - if no Channel was registered with the given AckIdpublic void ack(String ackId) throws AmqpAckException
AmqpMessage associated to the Channel identified by the
ackIdackId - the id associated to the Channel that should be ACKedAmqpAckException - if an error occurs during the ackpublic TransactionInformation getTransactionInformation()
public void unbindChannel()
public Optional<com.rabbitmq.client.Channel> getTransactedChannel()
public TransactionStatus getTransactionStatus()
public void changeTransactionStatus(TransactionStatus transactionStatus)
transactionStatus - The new TransactionStatuspublic void reject(String ackId, boolean requeue)
ackId - requeue - public MuleAmqpChannel createAmqpChannel(AmqpTransactionalConnection connection, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, boolean singleMessageChannel) throws IOException
IOExceptionpublic MuleAmqpChannel createAmqpChannelWithTransactionValidation(AmqpTransactionalConnection connection, org.mule.runtime.extension.api.tx.OperationTransactionalAction transactionalAction, QualityOfService qualityOfService, boolean singleMessageChannel) throws IOException
IOExceptionpublic MuleAmqpChannel createNewChannel(AmqpTransactionalConnection connection, QualityOfService qualityOfService, boolean singleMessageChannel) throws IOException
IOExceptionpublic com.rabbitmq.client.Channel getOrCreateTransactedChannel(AmqpTransactionalConnection connection, Optional<com.rabbitmq.client.Channel> transactedChannel) throws IOException
IOExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.