Versions Compared

Key

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

...

All thread pools created by Camel will be properly shutdown when CamelContext shutdowns which ensures no leaks in the pools in case you run in a server environment with hot deployments and the likes.

The ExecutorServiceManager has APIs for shutting down thread pools graceful and aggressively. Its encourage to use this API for creating and shutting down thread pools.

From Camel 2.10.2 onwards Camel the graceful shutdown(executorService) method from ExecutorServiceManager will shutdown graceful at first, until a timeout value is hit. After that it shutdown aggressively. The timeout value is by default 5000 millis. You can configure a custom value on the ExecutorServiceManager if needed.

See Also