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) |
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 - Copyright © 2019 MuleSoft, Inc.. All rights reserved.