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
-
-
Constructor Summary
Constructors Constructor Description ManagedExecutorHungTasksPeriodicTerminationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
install(org.jboss.as.controller.OperationContext context)
void
start(org.jboss.msc.service.StartContext startContext)
Future
startHungTaskPeriodicTermination(ManagedExecutorWithHungThreads executor, long hungTaskTerminationPeriod)
Starts the periodic hang task termination for the specified executor.void
stop(org.jboss.msc.service.StopContext stopContext)
-
-
-
Method Detail
-
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:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext)
- Specified by:
stop
in 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
-
-