Class RecordInfo
- java.lang.Object
-
- org.apache.activemq.artemis.core.journal.RecordInfo
-
public class RecordInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description shortcompactCountHow many times this record was compacted (up to 7 times) After the record has reached 7 times, it will always be 7 As we only store up to 0x7 binary, as part of the recordID (binary 111)byte[]datalongidbooleanisUpdatebooleanreplaceableUpdatebyteuserRecordType
-
Constructor Summary
Constructors Constructor Description RecordInfo(long id, byte userRecordType, byte[] data, boolean isUpdate, boolean replaceableUpdate, short compactCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)bytegetUserRecordType()inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
compactCount
public final short compactCount
How many times this record was compacted (up to 7 times) After the record has reached 7 times, it will always be 7 As we only store up to 0x7 binary, as part of the recordID (binary 111)
-
id
public final long id
-
userRecordType
public final byte userRecordType
-
data
public final byte[] data
-
isUpdate
public boolean isUpdate
-
replaceableUpdate
public boolean replaceableUpdate
-
-
Method Detail
-
getUserRecordType
public byte getUserRecordType()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-