This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch context-value-scoped-value-support
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to 
refs/heads/context-value-scoped-value-support by this push:
     new 240a9c7d989a Document concurrentConsumers conditional default for 
virtualThreadPerTask
240a9c7d989a is described below

commit 240a9c7d989af148fd985a16012fe0dacf5a00a1
Author: Guillaume Nodet <[email protected]>
AuthorDate: Wed Mar 4 09:42:27 2026 +0100

    Document concurrentConsumers conditional default for virtualThreadPerTask
    
    Update @UriParam description and Javadoc to document that
    concurrentConsumers defaults to 0 (unlimited) when virtualThreadPerTask
    is enabled, instead of the traditional default of 1.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../main/java/org/apache/camel/component/seda/SedaEndpoint.java    | 7 +++++--
 docs/user-manual/modules/ROOT/pages/virtual-threads.adoc           | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/components/camel-seda/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
 
b/components/camel-seda/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
index 8b5cc372819c..42c0534db793 100644
--- 
a/components/camel-seda/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
+++ 
b/components/camel-seda/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
@@ -80,7 +80,9 @@ public class SedaEndpoint extends DefaultEndpoint implements 
AsyncEndpoint, Brow
     private int browseLimit = 100;
 
     @UriParam(label = "consumer", defaultValue = "1",
-              description = "Number of concurrent threads processing 
exchanges.")
+              description = "Number of concurrent threads processing 
exchanges."
+                            + " When virtualThreadPerTask is enabled, this 
becomes a concurrency limit"
+                            + " (0 = unlimited) and defaults to 0 instead of 
1.")
     private int concurrentConsumers = 1;
     @UriParam(label = "consumer,advanced", defaultValue = "true",
               description = "Whether to limit the number of 
concurrentConsumers to the maximum of 500. By default, an exception will be 
thrown"
@@ -413,7 +415,8 @@ public class SedaEndpoint extends DefaultEndpoint 
implements AsyncEndpoint, Brow
     }
 
     /**
-     * Number of concurrent threads processing exchanges.
+     * Number of concurrent threads processing exchanges. When 
virtualThreadPerTask is enabled, this becomes a
+     * concurrency limit (0 = unlimited) and defaults to 0 instead of 1.
      */
     public void setConcurrentConsumers(int concurrentConsumers) {
         this.concurrentConsumers = concurrentConsumers;
diff --git a/docs/user-manual/modules/ROOT/pages/virtual-threads.adoc 
b/docs/user-manual/modules/ROOT/pages/virtual-threads.adoc
index b86c0916f221..a86a2d0e96a9 100644
--- a/docs/user-manual/modules/ROOT/pages/virtual-threads.adoc
+++ b/docs/user-manual/modules/ROOT/pages/virtual-threads.adoc
@@ -241,7 +241,7 @@ The `virtualThreadPerTask` mode uses a fundamentally 
different approach: *spawn
 2. For each message, a new task is submitted to a cached thread pool
 3. When virtual threads are enabled, `Executors.newThreadPerTaskExecutor()` is 
used
 4. Each message gets its own lightweight virtual thread
-5. The `concurrentConsumers` option becomes a *concurrency limit* (0 = 
unlimited)
+5. The `concurrentConsumers` option becomes a *concurrency limit* (default: 0 
= unlimited)
 
 ==== Configuration
 

Reply via email to