Class LogRecord

java.lang.Object
io.atomix.primitive.log.LogRecord

public class LogRecord
extends Object
Distributed log protocol record.

A log record represents an entry in a distributed log. The record includes an index() and a timestamp() at which the entry was committed to the log in addition to the value() of the entry.

  • Constructor Details

    • LogRecord

      public LogRecord​(long index, long timestamp, byte[] value)
  • Method Details

    • index

      public long index()
      Returns the record index.
      Returns:
      the record index
    • timestamp

      public long timestamp()
      Returns the record timestamp.
      Returns:
      the record timestamp
    • value

      public byte[] value()
      Returns the record value.
      Returns:
      the record value
    • toString

      public String toString()
      Overrides:
      toString in class Object