Commit e47fdd8
committed
feat(resilience): expose slowCallDurationThreshold and slowCallRateThreshold in CircuitBreakerConfiguration
Add two new optional properties to CircuitBreakerConfiguration:
- slowCallDurationThreshold (default: 60s, matching Resilience4j default)
- slowCallRateThreshold (default: 100%, matching Resilience4j default)
Wire both properties through DefaultCircuitBreakerProvider into the
Resilience4j CircuitBreakerConfig builder.
This is fully backwards-compatible as the defaults match Resilience4j's
existing defaults.
Resolves #1148
Signed-off-by: dira-AUR <243805326+dira-AUR@users.noreply.github.com>1 parent fc13905 commit e47fdd8
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- cloudplatform
- resilience-api/src/main/java/com/sap/cloud/sdk/cloudplatform/resilience
- resilience4j/src/main/java/com/sap/cloud/sdk/cloudplatform/resilience4j
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
431 | 443 | | |
432 | 444 | | |
433 | 445 | | |
| |||
461 | 473 | | |
462 | 474 | | |
463 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
464 | 492 | | |
465 | 493 | | |
466 | 494 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments