class RaftActorLeadershipTransferCohort {

    void onNewLeader(final String newLeader) {
        if (newLeader != null && newLeaderTimer != null) {
            LOG.debug("{}: leader changed to {}", raftActor.persistenceId(), newLeader);
            newLeaderTimer.cancel();
            finish(true);
        }
    }

      RaftActorLeadershipTransferCohort(final RaftActor raftActor);
      RaftActorLeadershipTransferCohort(final RaftActor raftActor, final @Nullable String requestedFollowerId);

}