Class RefsOperation
- java.lang.Object
-
- org.apache.activemq.artemis.core.transaction.TransactionOperationAbstract
-
- org.apache.activemq.artemis.core.server.impl.RefsOperation
-
- All Implemented Interfaces:
TransactionOperation
public class RefsOperation extends TransactionOperationAbstract
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanignoreRedeliveryCheckIt will ignore redelivery check, which is used during consumer.close to not perform reschedule redelivery check
-
Constructor Summary
Constructors Constructor Description RefsOperation(Queue queue, AckReason reason, StorageManager storageManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterCommit(Transaction tx)After commit shouldn't throw any exception.voidafterRollback(Transaction tx)After rollback shouldn't throw any exception.List<MessageReference>getLingerMessages()List<MessageReference>getListOnConsumer(long consumerID)List<MessageReference>getReferencesToAcknowledge()List<MessageReference>getRelatedMessageReferences()booleanisDelivering()protected voidrollbackRedelivery(Transaction tx, MessageReference ref, long timeBase, Map<QueueImpl,LinkedList<MessageReference>> queueMap)RefsOperationsetDelivering(boolean delivering)voidsetIgnoreRedeliveryCheck()voidsetLingerSession(String lingerSessionId)-
Methods inherited from class org.apache.activemq.artemis.core.transaction.TransactionOperationAbstract
afterCommit, afterPrepare, beforeCommit, beforePrepare, beforeRollback
-
-
-
-
Constructor Detail
-
RefsOperation
public RefsOperation(Queue queue, AckReason reason, StorageManager storageManager)
-
-
Method Detail
-
setDelivering
public RefsOperation setDelivering(boolean delivering)
-
isDelivering
public boolean isDelivering()
-
setIgnoreRedeliveryCheck
public void setIgnoreRedeliveryCheck()
-
afterRollback
public void afterRollback(Transaction tx)
Description copied from class:TransactionOperationAbstractAfter rollback shouldn't throw any exception.Any verification has to be done on before rollback
- Specified by:
afterRollbackin interfaceTransactionOperation- Overrides:
afterRollbackin classTransactionOperationAbstract
-
rollbackRedelivery
protected void rollbackRedelivery(Transaction tx, MessageReference ref, long timeBase, Map<QueueImpl,LinkedList<MessageReference>> queueMap) throws Exception
- Throws:
Exception
-
afterCommit
public void afterCommit(Transaction tx)
Description copied from class:TransactionOperationAbstractAfter commit shouldn't throw any exception.Any verification has to be done on before commit
- Specified by:
afterCommitin interfaceTransactionOperation- Overrides:
afterCommitin classTransactionOperationAbstract
-
getRelatedMessageReferences
public List<MessageReference> getRelatedMessageReferences()
- Specified by:
getRelatedMessageReferencesin interfaceTransactionOperation- Overrides:
getRelatedMessageReferencesin classTransactionOperationAbstract
-
getListOnConsumer
public List<MessageReference> getListOnConsumer(long consumerID)
- Specified by:
getListOnConsumerin interfaceTransactionOperation- Overrides:
getListOnConsumerin classTransactionOperationAbstract
-
getReferencesToAcknowledge
public List<MessageReference> getReferencesToAcknowledge()
-
getLingerMessages
public List<MessageReference> getLingerMessages()
-
setLingerSession
public void setLingerSession(String lingerSessionId)
-
-