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 ExecutorServicenewCachedThreadPool(ThreadFactory threadFactory)ScheduledExecutorServicenewScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)ExecutorServicenewThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, boolean allowCoreThreadTimeOut, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory)ExecutorServicenewThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
-
-
-
Method Detail
-
newCachedThreadPool
public ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
- Specified by:
newCachedThreadPoolin interfaceorg.apache.camel.spi.ThreadPoolFactory
-
newThreadPool
public ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
- Specified by:
newThreadPoolin 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:
newScheduledThreadPoolin interfaceorg.apache.camel.spi.ThreadPoolFactory
-
-