public interface ThreadPool extends Closeable
Modifier and Type | Method and Description |
---|---|
long |
averageWorkCompletionTime()
This method returns the average elapsed time taken to complete a Work
item.
|
int |
currentNumberOfThreads()
This method will return the current number of threads in the threadpool.
|
long |
currentProcessedCount()
This method returns the number of Work items processed by the threadpool
|
WorkQueue |
getAnyWorkQueue()
This method will return any instance of the WorkQueue.
|
String |
getName()
This method will return the name of the threadpool.
|
WorkQueue |
getWorkQueue(int queueId)
This method will return an instance of the of the WorkQueue given a queueId.
|
long |
idleTimeoutForThreads()
This method will return the time in milliseconds when idle threads in the threadpool are
removed.
|
int |
maximumNumberOfThreads()
This method will return the maximum number of threads in the threadpool at any
point in time, for the life of the threadpool
|
int |
minimumNumberOfThreads()
This method will return the minimum number of threads maintained by the threadpool.
|
int |
numberOfAvailableThreads()
This method will return the number of available threads in the threadpool which are
waiting for work.
|
int |
numberOfBusyThreads()
This method will return the number of busy threads in the threadpool
This method returns a value which is not synchronized.
|
int |
numberOfWorkQueues()
This method will return the number of WorkQueues serviced by the threadpool.
|
WorkQueue getAnyWorkQueue()
WorkQueue getWorkQueue(int queueId) throws NoSuchWorkQueueException
NoSuchWorkQueueException
- thrown when queueId passed is invalidint numberOfWorkQueues()
int minimumNumberOfThreads()
int maximumNumberOfThreads()
long idleTimeoutForThreads()
int currentNumberOfThreads()
int numberOfAvailableThreads()
int numberOfBusyThreads()
long currentProcessedCount()
long averageWorkCompletionTime()
String getName()
Copyright © 2021 JBoss by Red Hat. All rights reserved.