Skip to content

Commit 1b3a350

Browse files
authored
Merge pull request #1 from newtork/patch-1
Patch 1
2 parents 983525f + c5d34cd commit 1b3a350

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

cloudplatform/resilience-api/src/main/java/com/sap/cloud/sdk/cloudplatform/resilience/ResilienceConfiguration.java

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ public static final class CircuitBreakerConfiguration
429429
public static final Duration DEFAULT_WAIT_DURATION = Duration.ofSeconds(10);
430430

431431
/**
432-
* The default duration threshold above which calls are considered as slow.
433-
* Matches the Resilience4j default of 60 seconds.
432+
* The default duration threshold above which calls are considered as slow. Matches the Resilience4j default of
433+
* 60 seconds.
434434
*/
435435
public static final Duration DEFAULT_SLOW_CALL_DURATION_THRESHOLD = Duration.ofSeconds(60);
436436

437437
/**
438-
* The default slow call rate threshold (as percentage within [0, 100]).
439-
* Matches the Resilience4j default of 100%.
438+
* The default slow call rate threshold (as percentage within [0, 100]). Matches the Resilience4j default of
439+
* 100%.
440440
*/
441441
public static final float DEFAULT_SLOW_CALL_RATE_THRESHOLD = 100;
442442

@@ -474,9 +474,11 @@ public static final class CircuitBreakerConfiguration
474474
private int halfOpenBufferSize = DEFAULT_HALF_OPEN_BUFFER_SIZE;
475475

476476
/**
477-
* The duration threshold above which calls are considered as slow and increase the slow call rate.
478-
* When the percentage of slow calls is equal to or greater than {@link #slowCallRateThreshold},
479-
* the CircuitBreaker transitions to <i>OPEN</i> and starts short-circuiting calls.
477+
* The duration threshold above which calls are considered as slow and increase the slow call rate. When the
478+
* percentage of slow calls is equal to or greater than {@link #slowCallRateThreshold}, the CircuitBreaker
479+
* transitions to <i>OPEN</i> and starts short-circuiting calls.
480+
*
481+
* @since 5.29.0
480482
*/
481483
@Nonnull
482484
private Duration slowCallDurationThreshold = DEFAULT_SLOW_CALL_DURATION_THRESHOLD;
@@ -486,6 +488,8 @@ public static final class CircuitBreakerConfiguration
486488
* when the call duration is greater than {@link #slowCallDurationThreshold}. When the percentage of slow calls
487489
* is equal to or greater than the threshold, the CircuitBreaker transitions to <i>OPEN</i> and starts
488490
* short-circuiting calls.
491+
*
492+
* @since 5.29.0
489493
*/
490494
private float slowCallRateThreshold = DEFAULT_SLOW_CALL_RATE_THRESHOLD;
491495

0 commit comments

Comments
 (0)