...
On the ExecutorServiceStrategy
/ExecutorServiceManager
you can configure the thread name pattern using the setThreadNamePattern
method, which defines the thread names used when a thread pool creates a thread.
The default pattern is for:
- Camel 2.9.x or older:
Camel (${camelId}) thread #${counter} - ${name
} - Camel 2.10 onwards:
Camel (#camelId#) thread ##counter# - #name#
Notice we renamed the tokens from Camel 2.10 onwards to not clash with tokens by the Property Placeholder.
In the pattern you can use the following placeholders
- ${camelId} Camel 2.6: is the CamelContext name
- ${counter} is a unique incrementing counter.
- ${name} is the regular thread name.
- ${longName} is the long thread name which can includes endpoint parameters etc.
Notice the pattern name has changed from Camel 2.10 onwards, use #name# instead.
Component developers
If you develop your own Camel component and are in need of a thread pool, then its advised to use the ExecutorServiceStrategy
/ExecutorServiceManager
to create the thread pool you need.
...