Package org.apache.camel.support
Class DefaultThreadPoolFactory
- java.lang.Object
-
- org.apache.camel.support.DefaultThreadPoolFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultThreadPoolFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutorService
newCachedThreadPool(ThreadFactory threadFactory)
ScheduledExecutorService
newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
ExecutorService
newThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, boolean allowCoreThreadTimeOut, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory)
ExecutorService
newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
-
-
-
Method Detail
-
newCachedThreadPool
public ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
- Specified by:
newCachedThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-
newThreadPool
public ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
- Specified by:
newThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-
newThreadPool
public ExecutorService newThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, boolean allowCoreThreadTimeOut, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
newScheduledThreadPool
public ScheduledExecutorService newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
- Specified by:
newScheduledThreadPool
in interfaceorg.apache.camel.spi.ThreadPoolFactory
-
-