+ private void processNextPendingCommit() {
+ processNextPending(pendingCommits, State.COMMIT_PENDING,
+ entry -> startCommit(entry.cohort, entry.cohort.getCandidate()));
+ }
+
+ private void processNextPendingFinishCommit() {
+ processNextPending(pendingFinishCommits, State.FINISH_COMMIT_PENDING,
+ entry -> payloadReplicationComplete(entry.cohort.getIdentifier()));
+ }
+