tisonkun commented on code in PR #906:
URL: https://github.com/apache/ratis/pull/906#discussion_r1334912183
##########
ratis-server-api/src/main/java/org/apache/ratis/statemachine/StateMachine.java:
##########
@@ -228,6 +228,11 @@ default void notifyFollowerSlowness(RoleInfoProto
leaderInfo) {}
* Notify {@link StateMachine} that this server is no longer the leader.
*/
default void notifyNotLeader(Collection<TransactionContext>
pendingEntries) throws IOException {}
+
+ /**
+ * Notify the {@link StateMachine} that this server becomes ready after
changed to leader.
+ */
+ default void notifyLeaderReady() {}
Review Comment:
Perhaps `notifyServingAsLeader` or `notifyBecomeLeader`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]