File tree 1 file changed +2
-2
lines changed
core/src/main/java/dev/failsafe
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ private void assertFailureThresholdingPeriod(Duration failureThresholdingPeriod)
271
271
* occur when in a HALF_OPEN state in order to close the circuit, else the circuit is re-opened when a failure
272
272
* occurs.
273
273
*
274
- * @param successThreshold The number of consecutive successful executions that must occur in order to open the
274
+ * @param successThreshold The number of consecutive successful executions that must occur in order to close the
275
275
* circuit
276
276
* @throws IllegalArgumentException if {@code successThreshold} < 1
277
277
* @see CircuitBreakerConfig#getSuccessThreshold()
@@ -285,7 +285,7 @@ public CircuitBreakerBuilder<R> withSuccessThreshold(int successThreshold) {
285
285
* HALF_OPEN state in order to close the circuit. For example: 5, 10 would close the circuit if 5 out of the last 10
286
286
* executions were successful.
287
287
*
288
- * @param successThreshold The number of successful executions that must occur in order to open the circuit
288
+ * @param successThreshold The number of successful executions that must occur in order to close the circuit
289
289
* @param successThresholdingCapacity The capacity for storing execution results when performing success thresholding
290
290
* @throws IllegalArgumentException if {@code successThreshold} < 1, {@code successThresholdingCapacity} < 1, or
291
291
* {@code successThreshold} > {@code successThresholdingCapacity}
You can’t perform that action at this time.
0 commit comments