Package org.jboss.as.threads
Class UnboundedQueueThreadPoolService
- java.lang.Object
-
- org.jboss.as.threads.UnboundedQueueThreadPoolService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<ManagedJBossThreadPoolExecutorService>,org.jboss.msc.value.Value<ManagedJBossThreadPoolExecutorService>
public class UnboundedQueueThreadPoolService extends Object implements org.jboss.msc.service.Service<ManagedJBossThreadPoolExecutorService>
Service responsible for creating, starting and stopping a thread pool executor with an unbounded queue.- Author:
- John E. Bailey
-
-
Constructor Summary
Constructors Constructor Description UnboundedQueueThreadPoolService(boolean allowCoreThreadTimeout, int maxThreads, TimeSpec keepAlive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveCount()longgetCompletedTaskCount()intgetCurrentThreadCount()intgetLargestPoolSize()intgetLargestThreadCount()intgetQueueSize()intgetRejectedCount()longgetTaskCount()org.jboss.msc.inject.Injector<ThreadFactory>getThreadFactoryInjector()ManagedJBossThreadPoolExecutorServicegetValue()voidsetKeepAlive(TimeSpec keepAlive)voidsetMaxThreads(int maxThreads)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
UnboundedQueueThreadPoolService
public UnboundedQueueThreadPoolService(boolean allowCoreThreadTimeout, int maxThreads, TimeSpec keepAlive)
-
-
Method Detail
-
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
public ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<ManagedJBossThreadPoolExecutorService>- Throws:
IllegalStateException
-
getThreadFactoryInjector
public org.jboss.msc.inject.Injector<ThreadFactory> getThreadFactoryInjector()
-
setMaxThreads
public void setMaxThreads(int maxThreads)
-
setKeepAlive
public void setKeepAlive(TimeSpec keepAlive)
-
getActiveCount
public int getActiveCount()
-
getCompletedTaskCount
public long getCompletedTaskCount()
-
getCurrentThreadCount
public int getCurrentThreadCount()
-
getLargestPoolSize
public int getLargestPoolSize()
-
getLargestThreadCount
public int getLargestThreadCount()
-
getRejectedCount
public int getRejectedCount()
-
getTaskCount
public long getTaskCount()
-
getQueueSize
public int getQueueSize()
-
-