- private final Stopwatch isolatedLeaderCheck;
- private @Nullable LeadershipTransferContext leadershipTransferContext;
+ private final Stopwatch isolatedLeaderCheck = Stopwatch.createStarted();
+ @Nullable private LeadershipTransferContext leadershipTransferContext;
+
+ Leader(RaftActorContext context, @Nullable AbstractLeader initializeFromLeader) {
+ super(context, RaftState.Leader, initializeFromLeader);
+ }