Skip to content

Commit 7f411c6

Browse files
committed
Minor javadoc tweak
1 parent de48ad4 commit 7f411c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/net/jodah/failsafe/CircuitBreaker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ public CircuitBreaker<R> withDelay(Duration delay) {
314314
}
315315

316316
/**
317-
* Sets the number of successive failures that must occur when in a closed state in order to open the circuit.
317+
* Sets the number of consecutive failures that must occur when in a closed state in order to open the circuit.
318318
* <p>
319319
* If a {@link #withSuccessThreshold(int) success threshold} is not configured, the {@code failureThreshold} will also
320320
* be used when the circuit breaker is in a half-open state to determine whether to transition back to open or
321321
* closed.
322322
* </p>
323323
*
324-
* @throws IllegalArgumentException if {@code failureThresh} < 1
324+
* @throws IllegalArgumentException if {@code failureThreshold} < 1
325325
*/
326326
public CircuitBreaker<R> withFailureThreshold(int failureThreshold) {
327327
Assert.isTrue(failureThreshold >= 1, "failureThreshold must be greater than or equal to 1");
@@ -353,7 +353,7 @@ public synchronized CircuitBreaker<R> withFailureThreshold(int failures, int exe
353353
}
354354

355355
/**
356-
* Sets the number of successive successful executions that must occur when in a half-open state in order to close the
356+
* Sets the number of consecutive successful executions that must occur when in a half-open state in order to close the
357357
* circuit, else the circuit is re-opened when a failure occurs.
358358
*
359359
* @throws IllegalArgumentException if {@code successThreshold} < 1

0 commit comments

Comments
 (0)