public class ShortRunningThreads extends Object
| Constructor and Description |
|---|
ShortRunningThreads(String key) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowCoreTimeout()
Whether core threads may time out.
|
ShortRunningThreads |
allowCoreTimeout(Boolean value)
Whether core threads may time out.
|
Integer |
coreThreads()
The core thread pool size which is smaller than the maximum pool size.
|
ShortRunningThreads |
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.
|
ShortRunningThreads |
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.
|
ShortRunningThreads |
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.
|
ShortRunningThreads |
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.
|
Integer |
largestThreadCount()
The largest number of threads that have ever simultaneously been in the pool.
|
ShortRunningThreads |
largestThreadCount(Integer value)
The largest number of threads that have ever simultaneously been in the pool.
|
Integer |
maxThreads()
The maximum thread pool size.
|
ShortRunningThreads |
maxThreads(Integer value)
The maximum thread pool size.
|
String |
name()
The name of the thread pool.
|
ShortRunningThreads |
name(String value)
The name of the thread pool.
|
Integer |
queueLength()
The queue length.
|
ShortRunningThreads |
queueLength(Integer value)
The queue length.
|
Integer |
queueSize()
The queue size.
|
ShortRunningThreads |
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.
|
ShortRunningThreads |
rejectedCount(Integer value)
The number of tasks that have been passed to the handoff-executor (if one is specified) or discarded.
|
String |
threadFactory()
Specifies the name of a specific thread factory to use to create worker threads.
|
ShortRunningThreads |
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 Boolean allowCoreTimeout()
public ShortRunningThreads allowCoreTimeout(Boolean value)
public Integer coreThreads()
public ShortRunningThreads coreThreads(Integer value)
public Integer currentThreadCount()
public ShortRunningThreads currentThreadCount(Integer value)
public String handoffExecutor()
public ShortRunningThreads handoffExecutor(String value)
public Map keepaliveTime()
public ShortRunningThreads keepaliveTime(Map value)
public Integer largestThreadCount()
public ShortRunningThreads largestThreadCount(Integer value)
public Integer maxThreads()
public ShortRunningThreads maxThreads(Integer value)
public String name()
public ShortRunningThreads name(String value)
public Integer queueLength()
public ShortRunningThreads queueLength(Integer value)
public Integer queueSize()
public ShortRunningThreads queueSize(Integer value)
public Integer rejectedCount()
public ShortRunningThreads rejectedCount(Integer value)
public String threadFactory()
public ShortRunningThreads threadFactory(String value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.