/** * Increments the monitored value by <strong>1</strong> and performs a check of the current state of this * circuit breaker. This method works like {@link #checkState()}, but the monitored * value is incremented before the state check is performed. * * @return <strong>true</strong> if the circuit breaker is now closed; * <strong>false</strong> otherwise */ public boolean incrementAndCheckState() { return incrementAndCheckState(1); }
/** * Increments the monitored value by <strong>1</strong> and performs a check of the current state of this * circuit breaker. This method works like {@link #checkState()}, but the monitored * value is incremented before the state check is performed. * * @return <strong>true</strong> if the circuit breaker is now closed; * <strong>false</strong> otherwise */ public boolean incrementAndCheckState() { return incrementAndCheckState(1); }
/** * Increments the monitored value by <strong>1</strong> and performs a check of the current state of this * circuit breaker. This method works like {@link #checkState()}, but the monitored * value is incremented before the state check is performed. * * @return <strong>true</strong> if the circuit breaker is now closed; * <strong>false</strong> otherwise */ public boolean incrementAndCheckState() { return incrementAndCheckState(1); }
/** * Increments the monitored value by <strong>1</strong> and performs a check of the current state of this * circuit breaker. This method works like {@link #checkState()}, but the monitored * value is incremented before the state check is performed. * * @return <strong>true</strong> if the circuit breaker is now closed; * <strong>false</strong> otherwise */ public boolean incrementAndCheckState() { return incrementAndCheckState(1); }