Interface ReplicatedLogEntry

  • All Known Implementing Classes:
    SimpleReplicatedLogEntry

    public interface ReplicatedLogEntry
    Represents one entry in the replicated log.
    • Method Detail

      • getData

        Payload getData()
        Returns the payload/data to be replicated.
        Returns:
        the payload/data
      • getTerm

        long getTerm()
        Returns the term of the entry.
        Returns:
        the term
      • getIndex

        long getIndex()
        Returns the index of the entry.
        Returns:
        the index
      • size

        int size()
        Returns the size of the entry in bytes. An approximate number may be good enough.
        Returns:
        the size of the entry in bytes.
      • isPersistencePending

        boolean isPersistencePending()
        Checks if persistence is pending for this entry.
        Returns:
        true if persistence is pending, false otherwise.
      • setPersistencePending

        void setPersistencePending​(boolean pending)
        Sets whether or not persistence is pending for this entry.
        Parameters:
        pending - the new setting.