Xinyu Tan created IOTDB-3104:
--------------------------------

             Summary: Add Consensus Module StateMachine Event API 
                 Key: IOTDB-3104
                 URL: https://issues.apache.org/jira/browse/IOTDB-3104
             Project: Apache IoTDB
          Issue Type: Wish
            Reporter: Xinyu Tan
            Assignee: Xinyu Tan


We can register some event apis for statemachine to make the statemachine 
handle upper-level changes specifically.

Currently we will support two api:
 * notifyLeaderChanged:Notify the \{@link IStateMachine} that a new leader has 
been elected. Note that the new leader can possibly be this server.
 * notifyConfigurationChanged:Notify the \{@link IStateMachine} a configuration 
change. This method will be invoked when a newConfiguration is processed.

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to