Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Default

Description

size

1000

The maximum size of the SEDA queue

concurrentConsumers

1

Camel 1.6.1/2.0: Maximum number Number of concurrent threads processing exchanges.

Concurrent consumers

By default Camel uses a single consumer. You can configure the endpoint to use concurrent consumers. So instead of thread pools you can use:

Code Block

from("seda:stageName?concurrentConsumers=5").process(...)

Difference between thread pools and concurrent consumers

The thread pool is a pool that dynamically can increase/shrink at runtime depending on load, the concurrent consumers is always fixed.

Thread pools

Be aware that adding a thread pool to a seda endpoint by doing something like:

...