public class ManagedAsyncJobExecutor extends DefaultAsyncJobExecutor
ManagedThreadFactory
. Falls back to AsyncExecutor
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, executorService, maxPoolSize, queueSize, secondsToWaitOnShutdown, threadPoolQueue
asyncJobAcquisitionThread, asyncJobLockTimeInMillis, asyncJobsDueRunnable, commandExecutor, defaultAsyncJobAcquireWaitTimeInMillis, defaultQueueSizeFullWaitTime, defaultTimerJobAcquireWaitTimeInMillis, executeAsyncRunnableFactory, isActive, isAutoActivate, keepAliveTime, lockOwner, maxAsyncJobsDuePerAcquisition, maxTimerJobsPerAcquisition, retryWaitTimeInMillis, temporaryJobQueue, timerJobAcquisitionThread, timerJobRunnable, timerLockTimeInMillis
Constructor and Description |
---|
ManagedAsyncJobExecutor() |
Modifier and Type | Method and Description |
---|---|
javax.enterprise.concurrent.ManagedThreadFactory |
getThreadFactory() |
void |
setThreadFactory(javax.enterprise.concurrent.ManagedThreadFactory threadFactory) |
protected void |
startExecutingAsyncJobs() |
createRunnableForJob, executeAsyncJob, getCorePoolSize, getExecutorService, getMaxPoolSize, getQueueSize, getSecondsToWaitOnShutdown, getThreadPoolQueue, setCorePoolSize, setExecutorService, setMaxPoolSize, setQueueSize, setSecondsToWaitOnShutdown, setThreadPoolQueue, stopExecutingAsyncJobs, unlockJob
doUnlockJob, executeAsyncJob, getAsyncJobLockTimeInMillis, getCommandExecutor, getDefaultAsyncJobAcquireWaitTimeInMillis, getDefaultQueueSizeFullWaitTimeInMillis, getDefaultTimerJobAcquireWaitTimeInMillis, getExecuteAsyncRunnableFactory, getKeepAliveTime, getLockOwner, getMaxAsyncJobsDuePerAcquisition, getMaxTimerJobsPerAcquisition, getRetryWaitTimeInMillis, getTimerLockTimeInMillis, initialize, isActive, isAutoActivate, setAsyncJobLockTimeInMillis, setAsyncJobsDueRunnable, setAutoActivate, setCommandExecutor, setDefaultAsyncJobAcquireWaitTimeInMillis, setDefaultQueueSizeFullWaitTimeInMillis, setDefaultTimerJobAcquireWaitTimeInMillis, setExecuteAsyncRunnableFactory, setKeepAliveTime, setLockOwner, setMaxAsyncJobsDuePerAcquisition, setMaxTimerJobsPerAcquisition, setRetryWaitTimeInMillis, setTimerJobRunnable, setTimerLockTimeInMillis, shutdown, start, startJobAcquisitionThread, stopJobAcquisitionThread
public javax.enterprise.concurrent.ManagedThreadFactory getThreadFactory()
public void setThreadFactory(javax.enterprise.concurrent.ManagedThreadFactory threadFactory)
protected void startExecutingAsyncJobs()
startExecutingAsyncJobs
in class DefaultAsyncJobExecutor
Copyright © 2016 Alfresco. All rights reserved.