Package org.apache.camel.impl.engine
Class DefaultExecutorServiceManager
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.impl.engine.BaseExecutorServiceManager
org.apache.camel.impl.engine.DefaultExecutorServiceManager
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.ExecutorServiceManager,org.apache.camel.StatefulService,org.apache.camel.StaticService,org.apache.camel.SuspendableService
Default
ExecutorServiceManager.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.spi.ExecutorServiceManager
org.apache.camel.spi.ExecutorServiceManager.ThreadFactoryListener -
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectnewCachedThreadPool(Object source, String name) newScheduledThreadPool(Object source, String name, org.apache.camel.spi.ThreadPoolProfile profile) newThreadPool(Object source, String name, org.apache.camel.spi.ThreadPoolProfile profile) Methods inherited from class org.apache.camel.impl.engine.BaseExecutorServiceManager
addThreadFactoryListener, awaitTermination, createThreadFactory, doInit, doShutdown, doStart, getCamelContext, getDefaultThreadPoolProfile, getShutdownAwaitTermination, getThreadNamePattern, getThreadPoolFactory, getThreadPoolProfile, newDefaultScheduledThreadPool, newDefaultThreadPool, newFixedThreadPool, newScheduledThreadPool, newScheduledThreadPool, newSingleThreadExecutor, newSingleThreadScheduledExecutor, newThread, newThreadPool, newThreadPool, onNewExecutorService, registerThreadPoolProfile, resolveThreadName, setDefaultThreadPoolProfile, setShutdownAwaitTermination, setThreadNamePattern, setThreadPoolFactory, shutdown, shutdownGraceful, shutdownGraceful, shutdownNowMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
DefaultExecutorServiceManager
public DefaultExecutorServiceManager(org.apache.camel.CamelContext camelContext)
-
-
Method Details
-
newThreadPool
public ExecutorService newThreadPool(Object source, String name, org.apache.camel.spi.ThreadPoolProfile profile) - Specified by:
newThreadPoolin interfaceorg.apache.camel.spi.ExecutorServiceManager- Overrides:
newThreadPoolin classBaseExecutorServiceManager
-
newCachedThreadPool
- Specified by:
newCachedThreadPoolin interfaceorg.apache.camel.spi.ExecutorServiceManager- Overrides:
newCachedThreadPoolin classBaseExecutorServiceManager
-
newScheduledThreadPool
public ScheduledExecutorService newScheduledThreadPool(Object source, String name, org.apache.camel.spi.ThreadPoolProfile profile) - Specified by:
newScheduledThreadPoolin interfaceorg.apache.camel.spi.ExecutorServiceManager- Overrides:
newScheduledThreadPoolin classBaseExecutorServiceManager
-
forceId
-