java.lang.Object
org.jgroups.protocols.raft.RaftImpl
org.jgroups.protocols.raft.Leader
Implements the behavior of a RAFT leader
- Since:
- 0.1
- Author:
- Bela Ban
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called before getting destroyed (on a role change)voidhandleAppendEntriesResponse(org.jgroups.Address sender, long term, AppendResult result) voidinit()Called right after instantiationMethods inherited from class org.jgroups.protocols.raft.RaftImpl
getFirstIndexOfConflictingTerm, handleAppendEntriesRequest, handleInstallSnapshotRequest, raft, raft
-
Field Details
-
majority
-
-
Constructor Details
-
Leader
-
-
Method Details
-
init
public void init()Description copied from class:RaftImplCalled right after instantiation -
destroy
public void destroy()Description copied from class:RaftImplCalled before getting destroyed (on a role change) -
handleAppendEntriesResponse
- Overrides:
handleAppendEntriesResponsein classRaftImpl
-