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