class FollowerLogInformation {

    public boolean decrNextIndex(final long followerLastIndex) {
        if (nextIndex < 0) {
            return false;
        }

        if (followerLastIndex >= 0 && nextIndex > followerLastIndex) {
            // If the follower's last log index is lower than nextIndex, jump directly to it, so we converge
            // on a common index more quickly.
            nextIndex = followerLastIndex;
        } else {
            nextIndex--;
        }
        return true;
    }

    @VisibleForTesting  FollowerLogInformation(final PeerInfo peerInfo, final long matchIndex, final RaftActorContext context);
    public  FollowerLogInformation(final PeerInfo peerInfo, final RaftActorContext context);

}