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.git
The following commit(s) were added to refs/heads/main by this push:
new 98596c77f0b0 CAMEL-24217: Document the camel-main Resilience4j
Integer->String API break in the 4.22 upgrade guide
98596c77f0b0 is described below
commit 98596c77f0b0376e6cff435916ab4d8e6a2f19f6
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Jul 27 12:52:29 2026 +0200
CAMEL-24217: Document the camel-main Resilience4j Integer->String API break
in the 4.22 upgrade guide
The 4.22 upgrade guide covered the Java DSL and application.properties
duration changes from CAMEL-24137 but not the programmatic camel-main API
(Resilience4jConfigurationProperties). Add a subsection documenting the
Integer->String type change for waitDurationInOpenState,
slowCallDurationThreshold, timeoutDuration and bulkheadMaxWaitDuration.
Closes #25147
Co-authored-by: Claude Opus 4.8 <[email protected]>
---
.../ROOT/pages/camel-4x-upgrade-guide-4_22.adoc | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
index c53fd04bd048..798509c98709 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_22.adoc
@@ -1102,6 +1102,29 @@ camel.resilience4j.waitDurationInOpenState = 60s
camel.resilience4j.waitDurationInOpenState = 60000
----
+*Programmatic configuration (camel-main):*
+
+The same change applies to the Java API in
`org.apache.camel.main.Resilience4jConfigurationProperties`.
+The getters, setters and fluent builders for `waitDurationInOpenState`,
`slowCallDurationThreshold`,
+`timeoutDuration` and `bulkheadMaxWaitDuration` now use `String` instead of
`Integer`, so code that
+configures the circuit breaker through `MainConfigurationProperties` must be
updated:
+
+[source,java]
+----
+// Before:
+main.configure().resilience4j().withTimeoutDuration(1000);
+
+// After (milliseconds):
+main.configure().resilience4j().withTimeoutDuration("1000");
+
+// Or using a duration string (preferred):
+main.configure().resilience4j().withTimeoutDuration("1s");
+----
+
+`timeoutDuration` and `bulkheadMaxWaitDuration` were already expressed in
milliseconds, so for those
+two this is only a type change (quote the value) with no unit conversion;
`waitDurationInOpenState`
+and `slowCallDurationThreshold` additionally change from seconds to
milliseconds as described above.
+
=== camel-resilience4j - Vavr dependency removed
The `io.vavr:vavr` and `io.vavr:vavr-match` runtime dependencies have been
removed from