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,WildFlyManagedExecutorService
public class ManagedExecutorServiceImpl
extends org.glassfish.enterprise.concurrent.ManagedExecutorServiceImpl
implements WildFlyManagedExecutorService
- Author:
- Stuart Douglas, emmartins
-
Nested Class Summary
Nested classes/interfaces inherited from class org.glassfish.enterprise.concurrent.AbstractManagedExecutorService
org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicyNested classes/interfaces inherited from interface org.jboss.as.ee.concurrent.WildFlyManagedExecutorService
WildFlyManagedExecutorService.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, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) ManagedExecutorServiceImpl(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicyvoidprotected ThreadPoolExecutorFuture<?><T> Future<T><T> Future<T>voidMethods 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 java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowMethods inherited from interface jakarta.enterprise.concurrent.ManagedExecutorService
completedFuture, completedStage, copy, copy, failedFuture, failedStage, getContextService, newIncompleteFuture, runAsync, supplyAsync
-
Constructor Details
-
ManagedExecutorServiceImpl
public ManagedExecutorServiceImpl(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, BlockingQueue<Runnable> queue, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier) -
ManagedExecutorServiceImpl
public ManagedExecutorServiceImpl(String name, WildFlyManagedThreadFactory managedThreadFactory, long hungTaskThreshold, boolean longRunningTasks, int corePoolSize, int maxPoolSize, long keepAliveTime, TimeUnit keepAliveTimeUnit, long threadLifeTime, int queueCapacity, WildFlyContextService contextService, WildFlyManagedExecutorService.RejectPolicy rejectPolicy, org.wildfly.extension.requestcontroller.ControlPoint controlPoint, org.jboss.as.controller.ProcessStateNotifier processStateNotifier)
-
-
Method Details
-
convertRejectPolicy
public static org.glassfish.enterprise.concurrent.AbstractManagedExecutorService.RejectPolicy convertRejectPolicy(WildFlyManagedExecutorService.RejectPolicy rejectPolicy) -
getWildFlyManagedThreadFactory
- Specified by:
getWildFlyManagedThreadFactoryin interfaceWildFlyManagedExecutorService
-
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
- Specified by:
getRuntimeStatsin interfaceWildFlyManagedExecutorService- Returns:
- the executor's runtime stats
-
terminateHungTasks
public void terminateHungTasks()- Specified by:
terminateHungTasksin interfaceWildFlyManagedExecutorService
-