public class ManagedJobExecutor extends DefaultJobExecutor
ManagedThreadFactory
. Falls back to DefaultJobExecutor
when a thread factory was not referenced in configuration.
In Java EE 7, all application servers should provide access to a ManagedThreadFactory
.Modifier and Type | Field and Description |
---|---|
protected javax.enterprise.concurrent.ManagedThreadFactory |
threadFactory |
corePoolSize, keepAliveTime, maxPoolSize, queueSize, threadPoolExecutor, threadPoolQueue
acquireJobsCmd, acquireJobsRunnable, clockReader, commandExecutor, isActive, isAutoActivate, jobAcquisitionThread, lockOwner, lockTimeInMillis, maxJobsPerAcquisition, name, rejectedJobsHandler, waitTimeInMillis
Constructor and Description |
---|
ManagedJobExecutor() |
Modifier and Type | Method and Description |
---|---|
javax.enterprise.concurrent.ManagedThreadFactory |
getThreadFactory() |
void |
setThreadFactory(javax.enterprise.concurrent.ManagedThreadFactory threadFactory) |
protected void |
startExecutingJobs() |
executeJobs, getCorePoolSize, getKeepAliveTime, getMaxPoolSize, getQueueSize, getThreadPoolExecutor, getThreadPoolQueue, setCorePoolSize, setKeepAliveTime, setMaxPoolSize, setQueueSize, setThreadPoolExecutor, setThreadPoolQueue, stopExecutingJobs
ensureCleanup, ensureInitialization, getAcquireJobsCmd, getAcquireJobsRunnable, getCommandExecutor, getCurrentTime, getLockOwner, getLockTimeInMillis, getMaxJobsPerAcquisition, getName, getRejectedJobsHandler, getWaitTimeInMillis, isActive, isAutoActivate, jobDone, jobDone, jobWasAdded, setAcquireJobsCmd, setAcquireJobsRunnable, setAutoActivate, setClockReader, setCommandExecutor, setLockOwner, setLockTimeInMillis, setMaxJobsPerAcquisition, setRejectedJobsHandler, setWaitTimeInMillis, shutdown, start, startJobAcquisitionThread, stopJobAcquisitionThread
public javax.enterprise.concurrent.ManagedThreadFactory getThreadFactory()
public void setThreadFactory(javax.enterprise.concurrent.ManagedThreadFactory threadFactory)
protected void startExecutingJobs()
startExecutingJobs
in class DefaultJobExecutor
Copyright © 2016 Alfresco. All rights reserved.