You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/05/31 17:12:44 UTC

[camel-kamelets-examples] branch main updated: Polish

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-kamelets-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 33ee460  Polish
33ee460 is described below

commit 33ee4609fc4b8c15e35fec823ea4dfa586448ad2
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed May 31 19:12:36 2023 +0200

    Polish
---
 jbang/circuit-breaker/mycb.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/jbang/circuit-breaker/mycb.yaml b/jbang/circuit-breaker/mycb.yaml
index 0dc1766..eba1476 100644
--- a/jbang/circuit-breaker/mycb.yaml
+++ b/jbang/circuit-breaker/mycb.yaml
@@ -7,6 +7,10 @@
               constant:
                 expression: Hello Camel from yaml
         - circuitBreaker:
+            resilience4jConfiguration:
+              minimumNumberOfCalls: 10
+              failureRateThreshold: 50
+              waitDurationInOpenState: 20
             steps:
               - filter:
                   expression:
@@ -16,10 +20,6 @@
                     - throwException:
                         message: Forced error
                         exceptionType: java.lang.IllegalArgumentException
-            resilience4jConfiguration:
-              minimumNumberOfCalls: 10
-              failureRateThreshold: 50
-              waitDurationInOpenState: 20
         - log:
             message: "${body} (CircuitBreaker is open: ${exchangeProperty.CamelCircuitBreakerResponseShortCircuited})"
       parameters: