*/
public interface FollowerLogInformation {
- enum FollowerState {
- VOTING,
- NON_VOTING,
- VOTING_NOT_INITIALIZED
- };
-
/**
* Increment the value of the nextIndex
*
void setPayloadVersion(short payloadVersion);
/**
- * Sets the state of the follower.
- */
- void setFollowerState(FollowerState state);
-
- /**
- * @return the state of the follower.
+ * @return the raft version of the follower.
*/
- FollowerState getFollowerState();
+ short getRaftVersion();
/**
- * @return true if the follower is in a state where it can participate in leader elections and
- * commitment consensus.
+ * Sets the raft version of the follower.
*/
- boolean canParticipateInConsensus();
+ void setRaftVersion(short payloadVersion);
}