org.hornetq.core.journal.impl.dataformat
public class JournalCompleteRecordTX extends JournalInternalRecord
JournalFile
, the number of operations found is matched against this
number. If for any reason there are missing operations, the transaction will be ignored.
We can't just use a global counter as reclaiming could delete files after the transaction was
successfully committed. That also means not having a whole file on journal-reload doesn't mean we
have to invalidate the transaction
The commit operation itself is not included in this total.Modifier and Type | Class and Description |
---|---|
static class |
JournalCompleteRecordTX.TX_RECORD_TYPE |
compactCount, fileID
Constructor and Description |
---|
JournalCompleteRecordTX(JournalCompleteRecordTX.TX_RECORD_TYPE isCommit,
long txID,
EncodingSupport transactionData) |
Modifier and Type | Method and Description |
---|---|
void |
encode(HornetQBuffer buffer) |
int |
getEncodeSize() |
int |
getNumberOfRecords() |
void |
setNumberOfRecords(int records) |
decode, getCompactCount, getFileID, setCompactCount, setFileID
public JournalCompleteRecordTX(JournalCompleteRecordTX.TX_RECORD_TYPE isCommit, long txID, EncodingSupport transactionData)
public void encode(HornetQBuffer buffer)
public void setNumberOfRecords(int records)
setNumberOfRecords
in class JournalInternalRecord
public int getNumberOfRecords()
getNumberOfRecords
in class JournalInternalRecord
public int getEncodeSize()
getEncodeSize
in interface EncodingSupport
getEncodeSize
in class JournalInternalRecord
Copyright © 2015 JBoss, a division of Red Hat. All Rights Reserved.