public class UnboundedQueueThreadPoolService extends Object implements org.jboss.msc.service.Service<ManagedJBossThreadPoolExecutorService>
| Constructor and Description |
|---|
UnboundedQueueThreadPoolService(int maxThreads,
TimeSpec keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getCurrentThreadCount() |
int |
getLargestPoolSize() |
int |
getLargestThreadCount() |
int |
getQueueSize() |
int |
getRejectedCount() |
long |
getTaskCount() |
org.jboss.msc.inject.Injector<ThreadFactory> |
getThreadFactoryInjector() |
ManagedJBossThreadPoolExecutorService |
getValue() |
void |
setKeepAlive(TimeSpec keepAlive) |
void |
setMaxThreads(int maxThreads) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public UnboundedQueueThreadPoolService(int maxThreads,
TimeSpec keepAlive)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<ManagedJBossThreadPoolExecutorService>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ManagedJBossThreadPoolExecutorService>public ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<ManagedJBossThreadPoolExecutorService>IllegalStateExceptionpublic org.jboss.msc.inject.Injector<ThreadFactory> getThreadFactoryInjector()
public void setMaxThreads(int maxThreads)
public void setKeepAlive(TimeSpec keepAlive)
public int getActiveCount()
public long getCompletedTaskCount()
public int getCurrentThreadCount()
public int getLargestPoolSize()
public int getLargestThreadCount()
public int getRejectedCount()
public long getTaskCount()
public int getQueueSize()
Copyright © 2016 JBoss by Red Hat. All rights reserved.