Versions Compared

Key

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

...

All the thread pools that Camel creates are managed and thus you can see them in JConsole under the threadpools category.

ExecutorServiceStrategy ( Camel <

...

2.9.0 )

Camel provides a pluggable strategy to hook in your own thread pool provider, for example from a WorkManager in a J2EE server etc.
See the org.apache.camel.spi.ExecutorServiceStrategy interface which you should implement and hook into the WorkManager.

...

You can configure it on the CamelContext from Java DSL using the getter/setter.

ExecutorServiceManager ( Camel

...

>= 2.9.0 )

In camel 2.9.0 the ExecutorServiceManager replaces the ExecutorServiceStrategy. It is renamed to manager as is not only provides a strategy for threadPool creation but also keeps track of thread pools and thread pool profiles.
It has methods to register thread pool profiles and to create and shutdown ExecutorService and ScheduledExecutorService instances. The ThreadPoolBuilder class helps to create ThreadPoolProfiles in Java.

...