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 |
asyncJobAcquisitionThread, asyncJobLockTimeInMillis, asyncJobsDueRunnable, commandExecutor, corePoolSize, defaultAsyncJobAcquireWaitTimeInMillis, defaultTimerJobAcquireWaitTimeInMillis, executeAsyncRunnableFactory, executorService, isActive, isAutoActivate, keepAliveTime, lockOwner, maxAsyncJobsDuePerAcquisition, maxPoolSize, maxTimerJobsPerAcquisition, queueSize, retryWaitTimeInMillis, secondsToWaitOnShutdown, temporaryJobQueue, threadPoolQueue, 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() |
executeAsyncJob, getAsyncJobLockTimeInMillis, getCommandExecutor, getCorePoolSize, getDefaultAsyncJobAcquireWaitTimeInMillis, getDefaultTimerJobAcquireWaitTimeInMillis, getExecuteAsyncRunnableFactory, getExecutorService, getKeepAliveTime, getLockOwner, getMaxAsyncJobsDuePerAcquisition, getMaxPoolSize, getMaxTimerJobsPerAcquisition, getQueueSize, getRetryWaitTimeInMillis, getSecondsToWaitOnShutdown, getThreadPoolQueue, getTimerLockTimeInMillis, isActive, isAutoActivate, setAsyncJobLockTimeInMillis, setAsyncJobsDueRunnable, setAutoActivate, setCommandExecutor, setCorePoolSize, setDefaultAsyncJobAcquireWaitTimeInMillis, setDefaultTimerJobAcquireWaitTimeInMillis, setExecuteAsyncRunnableFactory, setExecutorService, setKeepAliveTime, setLockOwner, setMaxAsyncJobsDuePerAcquisition, setMaxPoolSize, setMaxTimerJobsPerAcquisition, setQueueSize, setRetryWaitTimeInMillis, setSecondsToWaitOnShutdown, setThreadPoolQueue, setTimerJobRunnable, setTimerLockTimeInMillis, shutdown, start, startJobAcquisitionThread, stopExecutingAsyncJobs, stopJobAcquisitionThread
public javax.enterprise.concurrent.ManagedThreadFactory getThreadFactory()
public void setThreadFactory(javax.enterprise.concurrent.ManagedThreadFactory threadFactory)
protected void startExecutingAsyncJobs()
startExecutingAsyncJobs
in class DefaultAsyncJobExecutor
Copyright © 2015 Alfresco. All rights reserved.