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 theRaftNode
interface, along with at which commit index the given operation is executed / performed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getCommitIndex()
Returns the commit index at which the operation is executed / performed.T
getResult()
Returns the actual result of the operation.
-
-
-
Method Detail
-
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.
-
-