class AbstractCheckPointThreshold implements CheckPointThreshold {

    @Override
    public final boolean isCheckPointingNeeded( long lastCommittedTransactionId, Consumer<String> consumer )
    {
        if ( thresholdReached( lastCommittedTransactionId ) )
        {
            consumer.accept( description );
            return true;
        }
        return false;
    }

    public  AbstractCheckPointThreshold( String description );

}