Class MetaStoreSerializer

java.lang.Object
io.atomix.raft.storage.serializer.MetaStoreSerializer

public class MetaStoreSerializer extends Object
  • Constructor Details

    • MetaStoreSerializer

      public MetaStoreSerializer()
  • Method Details

    • metaByteBuffer

      public ByteBuffer metaByteBuffer()
    • writeConfiguration

      public final ByteBuffer writeConfiguration(Configuration configuration)
    • readConfiguration

      public Configuration readConfiguration(ByteBuffer bb)
    • writeTerm

      public void writeTerm(long term)
    • readTerm

      public long readTerm()
    • writeVotedFor

      public void writeVotedFor(String memberId)
    • readVotedFor

      public String readVotedFor()
    • readLastFlushedIndex

      public long readLastFlushedIndex()
    • writeLastFlushedIndex

      public void writeLastFlushedIndex(long index)
    • writeCommitIndex

      public void writeCommitIndex(long index)
    • readRecord

      public MetaStoreRecord readRecord()
    • writeRecord

      public void writeRecord(MetaStoreRecord record)