Skip to content

Commit

Permalink
Doc update - fixes #384
Browse files Browse the repository at this point in the history
  • Loading branch information
jhalterman committed Jun 9, 2024
1 parent ceb14ac commit 98bb496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/dev/failsafe/CircuitBreakerBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private void assertFailureThresholdingPeriod(Duration failureThresholdingPeriod)
* occur when in a HALF_OPEN state in order to close the circuit, else the circuit is re-opened when a failure
* occurs.
*
* @param successThreshold The number of consecutive successful executions that must occur in order to open the
* @param successThreshold The number of consecutive successful executions that must occur in order to close the
* circuit
* @throws IllegalArgumentException if {@code successThreshold} < 1
* @see CircuitBreakerConfig#getSuccessThreshold()
Expand All @@ -285,7 +285,7 @@ public CircuitBreakerBuilder<R> withSuccessThreshold(int successThreshold) {
* HALF_OPEN state in order to close the circuit. For example: 5, 10 would close the circuit if 5 out of the last 10
* executions were successful.
*
* @param successThreshold The number of successful executions that must occur in order to open the circuit
* @param successThreshold The number of successful executions that must occur in order to close the circuit
* @param successThresholdingCapacity The capacity for storing execution results when performing success thresholding
* @throws IllegalArgumentException if {@code successThreshold} < 1, {@code successThresholdingCapacity} < 1, or
* {@code successThreshold} > {@code successThresholdingCapacity}
Expand Down

0 comments on commit 98bb496

Please sign in to comment.