Class ScheduledThreadPoolService

java.lang.Object
org.jboss.as.threads.ScheduledThreadPoolService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<ManagedScheduledExecutorService>, org.jboss.msc.value.Value<ManagedScheduledExecutorService>

public final class ScheduledThreadPoolService extends Object implements org.jboss.msc.service.Service<ManagedScheduledExecutorService>
Service responsible for creating, starting and stopping a scheduled thread pool executor.
Author:
David M. Lloyd
  • Constructor Details

    • ScheduledThreadPoolService

      public ScheduledThreadPoolService(int maxThreads, TimeSpec keepAlive)
  • Method Details

    • start

      public void start(org.jboss.msc.service.StartContext context) 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 context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.jboss.msc.value.Value<ManagedScheduledExecutorService>
      Throws:
      IllegalStateException
    • getThreadFactoryInjector

      public org.jboss.msc.inject.Injector<ThreadFactory> getThreadFactoryInjector()
    • getActiveCount

      public int getActiveCount()
    • getCompletedTaskCount

      public long getCompletedTaskCount()
    • getCurrentThreadCount

      public int getCurrentThreadCount()
    • getLargestThreadCount

      public int getLargestThreadCount()
    • getTaskCount

      public long getTaskCount()
    • getQueueSize

      public int getQueueSize()