| Package | Description |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.core |
| Modifier and Type | Method and Description |
|---|---|
boolean |
FSMCaller.onStartFollowing(LeaderChangeContext ctx)
Called when start following a leader.
|
void |
StateMachine.onStartFollowing(LeaderChangeContext ctx)
This method is called when a follower or candidate starts following a leader and its leaderId
(should be NULL before the method is called) is set to the leader's id,
situations including:
1.
|
boolean |
FSMCaller.onStopFollowing(LeaderChangeContext ctx)
Called when stop following a leader.
|
void |
StateMachine.onStopFollowing(LeaderChangeContext ctx)
This method is called when a follower stops following a leader and its leaderId becomes null,
situations including:
1.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
FSMCallerImpl.onStartFollowing(LeaderChangeContext ctx) |
void |
StateMachineAdapter.onStartFollowing(LeaderChangeContext ctx) |
boolean |
FSMCallerImpl.onStopFollowing(LeaderChangeContext ctx) |
void |
StateMachineAdapter.onStopFollowing(LeaderChangeContext ctx) |
Copyright © 2024. All rights reserved.