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 f89cf4e957d Camel 16099: add throttle changes to migration guide 
(#12200)
f89cf4e957d is described below

commit f89cf4e957d912ac5b524da24ea730bde9521f98
Author: Jono Morris <j...@apache.org>
AuthorDate: Sun Nov 26 23:31:24 2023 +1300

    Camel 16099: add throttle changes to migration guide (#12200)
    
    * CAMEL-16099 add throttle changes to migration guide
    
    * CAMEL-16099 tweek migration guide wording
    
    * CAMEL-16099 move throttle example to 4_3 upgrade guide
---
 .../ROOT/pages/camel-4x-upgrade-guide-4_3.adoc     | 33 ++++++++++++++++++++--
 1 file changed, 31 insertions(+), 2 deletions(-)

diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_3.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_3.adoc
index f97b3b25b7c..1eff390ac1a 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_3.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_3.adoc
@@ -25,5 +25,34 @@ the behavior described in the documentation.
 Throttle now uses the number of concurrent requests as the throttling measure 
instead of the number of requests
 per period.
 
-The `throttle` parameter now specifies the maximum number of concurrent 
requests,
-and there is no longer support for the `timePeriodMillis` option.
+Update throttle expressions configured with `maxRequestsPerPeriod` to use 
`maxConcurrentRequests` instead,
+and remove any `timePeriodMillis` option.
+
+For example, update the following:
+
+[source]
+----
+long maxRequestsPerPeriod = 100L;
+from("seda:a")
+  .throttle(maxRequestsPerPeriod).timePeriodMillis(500)
+  .to("seda:b")
+
+// 1000 ms default time period
+from("seda:c")
+  .throttle(maxRequestsPerPeriod)
+  .to("seda:d")
+----
+
+to use `maxConcurrentRequests`:
+
+[source]
+----
+long maxConcurrentRequests = 30L;
+from("seda:a")
+  .throttle(maxConcurrentRequests)
+  .to("seda:b")
+
+from("seda:c")
+  .throttle(maxConcurrentRequests)
+  .to("seda:d")
+----

Reply via email to