Package org.jboss.as.threads
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
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongintintintlongorg.jboss.msc.inject.Injector<ThreadFactory>getValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
ScheduledThreadPoolService
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) 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 context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ManagedScheduledExecutorService>- Throws:
IllegalStateException
-
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()
-