Interface RaftRPC
- All Superinterfaces:
ControlMessage
,Serializable
- All Known Implementing Classes:
AbstractRaftRPC
,AppendEntries
,AppendEntriesReply
,InstallSnapshot
,InstallSnapshotReply
,RequestVote
,RequestVoteReply
Interface implemented by all requests exchanged in the Raft protocol.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getTerm()
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
-