Package org.jboss.as.ee.concurrent
Class ManagedExecutorServiceImpl
java.lang.Object
java.util.concurrent.AbstractExecutorService
org.glassfish.enterprise.concurrent.AbstractManagedExecutorService
org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
org.jboss.as.ee.concurrent.ManagedExecutorServiceImpl
- All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedExecutorService,Executor,ExecutorService,ManagedExecutorWithHungThreads
public class ManagedExecutorServiceImpl
extends org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
implements ManagedExecutorWithHungThreads
- Author:
- Stuart Douglas, emmartins
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.enterprise.concurrent.AbstractManagedExecutorService
org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy -
Field Summary
Fields inherited from class org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
adapter, threadPoolExecutorFields inherited from class org.glassfish.enterprise.concurrent.AbstractManagedExecutorService
contextService, contextSetupProvider, contextualCallback, longRunningTasks, managedThreadFactory, name, rejectPolicy -
Constructor Summary
ConstructorsConstructorDescriptionManagedExecutorServiceImpl(String name, org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) ManagedExecutorServiceImpl(String name, org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ThreadPoolExecutorFuture<?><T> Future<T><T> Future<T>Methods inherited from class org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
getAdapter, getCompletedTaskCount, getExecutorForTaskListener, getNewTaskFor, getNewTaskFor, getTaskCountMethods inherited from class org.glassfish.enterprise.concurrent.AbstractManagedExecutorService
awaitTermination, completedFuture, completedStage, copy, copy, doInvokeAny, executeManagedFutureTask, failedFuture, failedStage, getContextService, getContextSetupProvider, getHungThreads, getManagedThreadFactory, getName, getObjectName, getRejectPolicy, getThreads, invokeAll, invokeAll, invokeAny, invokeAny, isContextualCallback, isEventProvider, isLongRunningTasks, isShutdown, isStateManageable, isStatisticsProvider, isTerminated, newIncompleteFuture, newTaskFor, newTaskFor, runAsync, shutdown, shutdownNow, supplyAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.ee.concurrent.ManagedExecutorWithHungThreads
getHungThreads, getName, terminateHungTasks
-
Constructor Details
-
ManagedExecutorServiceImpl
public ManagedExecutorServiceImpl(String name, org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) -
ManagedExecutorServiceImpl
public ManagedExecutorServiceImpl(String name, org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, org.glassfish.enterprise.concurrent.ContextServiceImpl contextService, org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier)
-
-
Method Details
-
submit
- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classorg.glassfish.enterprise.concurrent.AbstractManagedExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classorg.glassfish.enterprise.concurrent.AbstractManagedExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService- Overrides:
submitin classorg.glassfish.enterprise.concurrent.AbstractManagedExecutorService
-
execute
-
getThreadPoolExecutor
- Overrides:
getThreadPoolExecutorin classorg.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
-
getRuntimeStats
- Returns:
- the executor's runtime stats
-