class CloudBreakerEntryImpl extends BreakerEntrySim {
    RateLimiter limiter;
    int thresholdValue;

    public CloudBreakerEntryImpl(int permitsPerSecond) {
        this.thresholdValue = permitsPerSecond;

        loadRules();
    }

    private void loadRules(){
        limiter = RateLimiter.create(thresholdValue);
    }

    @Override
    public AutoCloseable enter() throws BreakerException {<FILL_FUNCTION_BODY>}

    @Override
    public void reset(int value) {
        if(thresholdValue != value){
            thresholdValue = value;

            loadRules();
        }
    }
}

        if (limiter.tryAcquire()) {
            return this;
        } else {
            throw new BreakerException();
        }
    
<methods>public non-sealed void <init>() ,public abstract void reset(int) <variables>