public class DefaultThreadPoolFactory
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.CamelContextAware, org.apache.camel.spi.ThreadPoolFactory, org.apache.camel.StaticService
Executors for creating the thread pools.| Constructor and Description |
|---|
DefaultThreadPoolFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.CamelContext |
getCamelContext() |
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) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
newCachedThreadPool in interface org.apache.camel.spi.ThreadPoolFactorypublic ExecutorService newThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory factory)
newThreadPool in interface org.apache.camel.spi.ThreadPoolFactorypublic ExecutorService newThreadPool(int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit timeUnit, int maxQueueSize, boolean allowCoreThreadTimeOut, RejectedExecutionHandler rejectedExecutionHandler, ThreadFactory threadFactory) throws IllegalArgumentException
IllegalArgumentExceptionpublic ScheduledExecutorService newScheduledThreadPool(org.apache.camel.spi.ThreadPoolProfile profile, ThreadFactory threadFactory)
newScheduledThreadPool in interface org.apache.camel.spi.ThreadPoolFactoryApache Camel