Class CamelThreadFactory

java.lang.Object
org.apache.camel.util.concurrent.CamelThreadFactory
All Implemented Interfaces:
ThreadFactory, ThreadFactoryTypeAware

public final class CamelThreadFactory extends Object implements ThreadFactoryTypeAware
Thread factory which creates threads supporting a naming pattern. On JDK 21+, this factory creates virtual threads when the System property camel.threads.virtual.enabled is set to true. On JDK 17, only platform threads are available.