...
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.