public class ShortRunningThreads<T extends ShortRunningThreads<T>> extends Object
| Constructor and Description | 
|---|
ShortRunningThreads(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
Boolean | 
allowCoreTimeout()
Whether core threads may time out. 
 | 
T | 
allowCoreTimeout(Boolean value)
Whether core threads may time out. 
 | 
Integer | 
coreThreads()
The core thread pool size which is smaller than the maximum pool size. 
 | 
T | 
coreThreads(Integer value)
The core thread pool size which is smaller than the maximum pool size. 
 | 
Integer | 
currentThreadCount()
The current number of threads in the pool. 
 | 
T | 
currentThreadCount(Integer value)
The current number of threads in the pool. 
 | 
String | 
getKey()  | 
String | 
handoffExecutor()
An executor to delegate tasks to in the event that a task cannot be
 accepted. 
 | 
T | 
handoffExecutor(String value)
An executor to delegate tasks to in the event that a task cannot be
 accepted. 
 | 
Map | 
keepaliveTime()
Used to specify the amount of time that pool threads should be kept
 running when idle; if not specified, threads will run until the executor
 is shut down. 
 | 
T | 
keepaliveTime(Map value)
Used to specify the amount of time that pool threads should be kept
 running when idle; if not specified, threads will run until the executor
 is shut down. 
 | 
T | 
keepaliveTime(String key,
             Object value)
Used to specify the amount of time that pool threads should be kept
 running when idle; if not specified, threads will run until the executor
 is shut down. 
 | 
Integer | 
largestThreadCount()
The largest number of threads that have ever simultaneously been in the
 pool. 
 | 
T | 
largestThreadCount(Integer value)
The largest number of threads that have ever simultaneously been in the
 pool. 
 | 
Integer | 
maxThreads()
The maximum thread pool size. 
 | 
T | 
maxThreads(Integer value)
The maximum thread pool size. 
 | 
String | 
name()
The name of the thread pool. 
 | 
T | 
name(String value)
The name of the thread pool. 
 | 
Integer | 
queueLength()
The queue length. 
 | 
T | 
queueLength(Integer value)
The queue length. 
 | 
Integer | 
queueSize()
The queue size. 
 | 
T | 
queueSize(Integer value)
The queue size. 
 | 
Integer | 
rejectedCount()
The number of tasks that have been passed to the handoff-executor (if one
 is specified) or discarded. 
 | 
T | 
rejectedCount(Integer value)
The number of tasks that have been passed to the handoff-executor (if one
 is specified) or discarded. 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
String | 
threadFactory()
Specifies the name of a specific thread factory to use to create worker
 threads. 
 | 
T | 
threadFactory(String value)
Specifies the name of a specific thread factory to use to create worker
 threads. 
 | 
public ShortRunningThreads(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Boolean allowCoreTimeout()
public Integer coreThreads()
public T coreThreads(Integer value)
public Integer currentThreadCount()
public T currentThreadCount(Integer value)
public String handoffExecutor()
public T handoffExecutor(String value)
public Map keepaliveTime()
public T keepaliveTime(Map value)
public T keepaliveTime(String key, Object value)
public Integer largestThreadCount()
public T largestThreadCount(Integer value)
public Integer maxThreads()
public String name()
public Integer queueLength()
public Integer queueSize()
public Integer rejectedCount()
public T rejectedCount(Integer value)
public String threadFactory()
Copyright © 2018 JBoss by Red Hat. All rights reserved.