public class ThreadPool extends Object
| Constructor and Description |
|---|
ThreadPool(String key) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
activeCount()
The approximate number of threads that are actively executing tasks.
|
ThreadPool |
activeCount(Integer value)
The approximate number of threads that are actively executing tasks.
|
Integer |
completedTaskCount()
The approximate total number of tasks that have completed execution.
|
ThreadPool |
completedTaskCount(Integer value)
The approximate total number of tasks that have completed execution.
|
Integer |
currentThreadCount()
The current number of threads in the pool.
|
ThreadPool |
currentThreadCount(Integer value)
The current number of threads in the pool.
|
String |
getKey() |
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.
|
ThreadPool |
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.
|
ThreadPool |
largestThreadCount(Integer value)
The largest number of threads that have ever simultaneously been in the pool.
|
Integer |
maxThreads()
The maximum thread pool size.
|
ThreadPool |
maxThreads(Integer value)
The maximum thread pool size.
|
String |
name()
The name of the thread pool.
|
ThreadPool |
name(String value)
The name of the thread pool.
|
Integer |
queueSize()
The queue size.
|
ThreadPool |
queueSize(Integer value)
The queue size.
|
Integer |
rejectedCount()
The number of tasks that have been rejected.
|
ThreadPool |
rejectedCount(Integer value)
The number of tasks that have been rejected.
|
Integer |
taskCount()
The approximate total number of tasks that have ever been scheduled for execution.
|
ThreadPool |
taskCount(Integer value)
The approximate total number of tasks that have ever been scheduled for execution.
|
String |
threadFactory()
Specifies the name of a specific thread factory to use to create worker threads.
|
ThreadPool |
threadFactory(String value)
Specifies the name of a specific thread factory to use to create worker threads.
|
public ThreadPool(String key)
public String getKey()
public Integer activeCount()
public ThreadPool activeCount(Integer value)
public Integer completedTaskCount()
public ThreadPool completedTaskCount(Integer value)
public Integer currentThreadCount()
public ThreadPool currentThreadCount(Integer value)
public Map keepaliveTime()
public ThreadPool keepaliveTime(Map value)
public Integer largestThreadCount()
public ThreadPool largestThreadCount(Integer value)
public Integer maxThreads()
public ThreadPool maxThreads(Integer value)
public String name()
public ThreadPool name(String value)
public Integer queueSize()
public ThreadPool queueSize(Integer value)
public Integer rejectedCount()
public ThreadPool rejectedCount(Integer value)
public Integer taskCount()
public ThreadPool taskCount(Integer value)
public String threadFactory()
public ThreadPool threadFactory(String value)
Copyright © 2015 JBoss by Red Hat. All rights reserved.