示例#1
0
 public override void ApplyTo(RaftLogShipper raftLogShipper, LeaderContext leaderContext)
 {
     if (raftLogShipper.Identity().Equals(Target))
     {
         raftLogShipper.OnMatch(NewMatchIndex, leaderContext);
     }
 }
示例#2
0
 public override void ApplyTo(RaftLogShipper raftLogShipper, LeaderContext leaderContext)
 {
     if (raftLogShipper.Identity().Equals(Target))
     {
         raftLogShipper.OnMismatch(LastRemoteAppendIndex, leaderContext);
     }
 }
示例#3
0
 public override void ApplyTo(RaftLogShipper raftLogShipper, LeaderContext leaderContext)
 {
     raftLogShipper.OnCommitUpdate(leaderContext);
 }
示例#4
0
 public abstract void ApplyTo(RaftLogShipper raftLogShipper, LeaderContext leaderContext);
示例#5
0
 public override void ApplyTo(RaftLogShipper raftLogShipper, LeaderContext leaderContext)
 {
     raftLogShipper.OnNewEntries(PrevLogIndex, PrevLogTerm, NewLogEntries, leaderContext);
 }