Class RecordInfo

java.lang.Object
org.apache.activemq.artemis.core.journal.RecordInfo

public class RecordInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final short
    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)
    final byte[]
     
    final long
     
    boolean
     
    boolean
     
    final byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecordInfo(long id, byte userRecordType, byte[] data, boolean isUpdate, boolean replaceableUpdate, short compactCount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    byte
     
    int
     
     
    org.apache.activemq.artemis.api.core.ActiveMQBuffer
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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
  • Constructor Details

    • RecordInfo

      public RecordInfo(long id, byte userRecordType, byte[] data, boolean isUpdate, boolean replaceableUpdate, short compactCount)
  • Method Details

    • wrapData

      public org.apache.activemq.artemis.api.core.ActiveMQBuffer wrapData()
    • getUserRecordType

      public byte getUserRecordType()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object