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 |
asyncJobLockTimeInMillis, commandExecutor, corePoolSize, defaultAsyncJobAcquireWaitTimeInMillis, defaultTimerJobAcquireWaitTimeInMillis, executorService, isActive, isAutoActivate, keepAliveTime, lockOwner, maxAsyncJobsDuePerAcquisition, maxPoolSize, maxTimerJobsPerAcquisition, queueSize, retryWaitTimeInMillis, secondsToWaitOnShutdown, temporaryJobQueue, threadPoolQueue, 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, getExecutorService, getKeepAliveTime, getLockOwner, getMaxAsyncJobsDuePerAcquisition, getMaxPoolSize, getMaxTimerJobsPerAcquisition, getQueueSize, getRetryWaitTimeInMillis, getSecondsToWaitOnShutdown, getThreadPoolQueue, getTimerLockTimeInMillis, isActive, isAutoActivate, setAsyncJobLockTimeInMillis, setAutoActivate, setCommandExecutor, setCorePoolSize, setDefaultAsyncJobAcquireWaitTimeInMillis, setDefaultTimerJobAcquireWaitTimeInMillis, setExecutorService, setKeepAliveTime, setLockOwner, setMaxAsyncJobsDuePerAcquisition, setMaxPoolSize, setMaxTimerJobsPerAcquisition, setQueueSize, setRetryWaitTimeInMillis, setSecondsToWaitOnShutdown, setThreadPoolQueue, setTimerLockTimeInMillis, shutdown, start, stopExecutingAsyncJobs
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.