Class ManagedExecutorHungTasksPeriodicTerminationService
java.lang.Object
org.jboss.as.ee.concurrent.service.ManagedExecutorHungTasksPeriodicTerminationService
- All Implemented Interfaces:
org.jboss.msc.Service
public class ManagedExecutorHungTasksPeriodicTerminationService
extends Object
implements org.jboss.msc.Service
Periodic hung task termination service for managed executors.
- Author:
- emmartins
-
Field Summary
Fields inherited from interface org.jboss.msc.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinstall(org.jboss.as.controller.OperationContext context) voidstart(org.jboss.msc.service.StartContext startContext) startHungTaskPeriodicTermination(ManagedExecutorWithHungThreads executor, long hungTaskTerminationPeriod) Starts the periodic hang task termination for the specified executor.voidstop(org.jboss.msc.service.StopContext stopContext)
-
Constructor Details
-
ManagedExecutorHungTasksPeriodicTerminationService
public ManagedExecutorHungTasksPeriodicTerminationService()
-
-
Method Details
-
install
public void install(org.jboss.as.controller.OperationContext context) -
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
startHungTaskPeriodicTermination
public Future startHungTaskPeriodicTermination(ManagedExecutorWithHungThreads executor, long hungTaskTerminationPeriod) Starts the periodic hang task termination for the specified executor.- Parameters:
executor-hungTaskTerminationPeriod-- Returns:
- a Future instance which may be used to cancel the hung task periodic termination
-