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 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:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext stopContext)
      Specified by:
      stop in interface org.jboss.msc.Service
    • startHungTaskPeriodicTermination

      public Future startHungTaskPeriodicTermination(WildFlyManagedExecutorService 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