This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-jbang-examples.git
The following commit(s) were added to refs/heads/main by this push:
new 31511ce chore: fix circuitBreaker resilience4jConfiguration placement
31511ce is described below
commit 31511cee60714dc0f3c3e925558cc775da431903
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu May 21 09:26:59 2026 +0200
chore: fix circuitBreaker resilience4jConfiguration placement
Move resilience4jConfiguration from inside steps to a direct property
of circuitBreaker, matching the correct YAML DSL structure.
Co-Authored-By: Claude <[email protected]>
---
circuit-breaker/route.camel.yaml | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/circuit-breaker/route.camel.yaml b/circuit-breaker/route.camel.yaml
index 79b2898..8ae2355 100644
--- a/circuit-breaker/route.camel.yaml
+++ b/circuit-breaker/route.camel.yaml
@@ -10,10 +10,10 @@
constant:
expression: Hello Camel
- circuitBreaker:
+ resilience4jConfiguration:
+ minimumNumberOfCalls: 10
+ waitDurationInOpenState: 20
steps:
- - resilience4jConfiguration:
- minimumNumberOfCalls: 10
- waitDurationInOpenState: 20
- filter:
expression:
simple:
@@ -24,4 +24,3 @@
exceptionType: java.lang.IllegalArgumentException
- log:
message: "${body} (CircuitBreaker is open:
${exchangeProperty.CamelCircuitBreakerResponseShortCircuited})"
-