class Leader extends AbstractLeader {

    @Override
    public void close() {
        if (leadershipTransferContext != null) {
            LeadershipTransferContext localLeadershipTransferContext = leadershipTransferContext;
            leadershipTransferContext = null;
            localLeadershipTransferContext.transferCohort.abortTransfer();
        }

        super.close();
    }

      Leader(final RaftActorContext context, @Nullable final AbstractLeader initializeFromLeader);
    public  Leader(final RaftActorContext context);

}