Class PersistedRaftRecord

java.lang.Object
io.atomix.raft.protocol.PersistedRaftRecord
All Implemented Interfaces:
JournalRecord

public class PersistedRaftRecord extends Object implements JournalRecord
  • Constructor Details

    • PersistedRaftRecord

      public PersistedRaftRecord(long term, long index, long asqn, long checksum, byte[] serializedRaftLogEntry)
  • Method Details

    • index

      public long index()
      Specified by:
      index in interface JournalRecord
    • asqn

      public long asqn()
      Specified by:
      asqn in interface JournalRecord
    • checksum

      public long checksum()
      Specified by:
      checksum in interface JournalRecord
    • data

      public org.agrona.DirectBuffer data()
      Specified by:
      data in interface JournalRecord
    • approximateSize

      public int approximateSize()
      Returns the approximate size needed when serializing this class. The exact size depends on the serializer.
      Returns:
      approximate size
    • term

      public long term()
      Returns the term for this record
      Returns:
      term