...
Name | Default | Description |
---|---|---|
size | 1000 | The maximum size of the SEDA queue |
concurrentConsumers | 1 | Number of threads that process exchanges |
Thread pools
Be aware that adding a thread pool to a seda endpoint by doing something like:
...
Code Block |
---|
from("direct:stageName").thread(5).process(...) |
You can also directly configure number of threads that process messages on seda endpoint using concurrentConsumers
parameter.
Sample
In the route below we use the SEDA queue to send the request to this async queue to be able to send a fire-and-forget message for further processing in another thread, and return a constant reply in this thread to the original caller.
...