public class QueuelessThreadPoolService extends Object implements org.jboss.msc.service.Service<ManagedQueuelessExecutorService>
Constructor and Description |
---|
QueuelessThreadPoolService(int maxThreads,
boolean blocking,
TimeSpec keepAlive) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentThreadCount() |
org.jboss.msc.inject.Injector<Executor> |
getHandoffExecutorInjector() |
int |
getLargestThreadCount() |
int |
getQueueSize() |
int |
getRejectedCount() |
org.jboss.msc.inject.Injector<ThreadFactory> |
getThreadFactoryInjector() |
ManagedQueuelessExecutorService |
getValue() |
void |
setKeepAlive(TimeSpec keepAliveSpec) |
void |
setMaxThreads(int maxThreads) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public QueuelessThreadPoolService(int maxThreads, boolean blocking, 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<ManagedQueuelessExecutorService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ManagedQueuelessExecutorService>
public ManagedQueuelessExecutorService getValue() throws IllegalStateException
getValue
in interface org.jboss.msc.value.Value<ManagedQueuelessExecutorService>
IllegalStateException
public org.jboss.msc.inject.Injector<ThreadFactory> getThreadFactoryInjector()
public org.jboss.msc.inject.Injector<Executor> getHandoffExecutorInjector()
public void setMaxThreads(int maxThreads)
public void setKeepAlive(TimeSpec keepAliveSpec)
public int getCurrentThreadCount()
public int getLargestThreadCount()
public int getRejectedCount()
public int getQueueSize()
Copyright © 2023 JBoss by Red Hat. All rights reserved.