Package io.microraft

Interface Ordered<T>

Type Parameters:
T - type of the actual result object

public interface Ordered<T>
Represents result of an operation that is triggered on a Raft node via one of the methods in the RaftNode interface, along with at which commit index the given operation is executed / performed.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the commit index at which the operation is executed / performed.
    Returns the actual result of the operation.
  • Method Details

    • getCommitIndex

      long getCommitIndex()
      Returns the commit index at which the operation is executed / performed.
      Returns:
      the commit index at which the operation is executed / performed.
    • getResult

      T getResult()
      Returns the actual result of the operation.
      Returns:
      the actual result of the operation.