Search in sources :

Example 6 with DuplicateIDEncoding

use of org.apache.activemq.artemis.core.persistence.impl.journal.codec.DuplicateIDEncoding in project activemq-artemis by apache.

the class AbstractJournalStorageManager method storeDuplicateIDTransactional.

@Override
public void storeDuplicateIDTransactional(final long txID, final SimpleString address, final byte[] duplID, final long recordID) throws Exception {
    DuplicateIDEncoding encoding = new DuplicateIDEncoding(address, duplID);
    readLock();
    try {
        messageJournal.appendAddRecordTransactional(txID, recordID, JournalRecordIds.DUPLICATE_ID, encoding);
    } finally {
        readUnLock();
    }
}
Also used : DuplicateIDEncoding(org.apache.activemq.artemis.core.persistence.impl.journal.codec.DuplicateIDEncoding)

Aggregations

DuplicateIDEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.DuplicateIDEncoding)6 ActiveMQBuffer (org.apache.activemq.artemis.api.core.ActiveMQBuffer)3 Message (org.apache.activemq.artemis.api.core.Message)3 PageTransactionInfoImpl (org.apache.activemq.artemis.core.paging.impl.PageTransactionInfoImpl)3 CursorAckRecordEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.CursorAckRecordEncoding)3 PageCountRecordInc (org.apache.activemq.artemis.core.persistence.impl.journal.codec.PageCountRecordInc)3 RefEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.RefEncoding)3 LargeServerMessage (org.apache.activemq.artemis.core.server.LargeServerMessage)3 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 LinkedHashMap (java.util.LinkedHashMap)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 PreparedTransactionInfo (org.apache.activemq.artemis.core.journal.PreparedTransactionInfo)2 RecordInfo (org.apache.activemq.artemis.core.journal.RecordInfo)2 PageTransactionInfo (org.apache.activemq.artemis.core.paging.PageTransactionInfo)2 PageSubscription (org.apache.activemq.artemis.core.paging.cursor.PageSubscription)2 DeliveryCountUpdateEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.DeliveryCountUpdateEncoding)2 HeuristicCompletionEncoding (org.apache.activemq.artemis.core.persistence.impl.journal.codec.HeuristicCompletionEncoding)2 PageCountPendingImpl (org.apache.activemq.artemis.core.persistence.impl.journal.codec.PageCountPendingImpl)2 PageCountRecord (org.apache.activemq.artemis.core.persistence.impl.journal.codec.PageCountRecord)2