All Superinterfaces:
ControlMessage, Serializable
All Known Implementing Classes:
AbstractRaftRPC, AppendEntries, AppendEntriesReply, InstallSnapshot, InstallSnapshotReply, RequestVote, RequestVoteReply

public interface RaftRPC extends Serializable, ControlMessage
Interface implemented by all requests exchanged in the Raft protocol.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Return the term in which this call is being made.
  • Method Details

    • getTerm

      long getTerm()
      Return the term in which this call is being made.
      Returns:
      The term ID