public interface ThreadPoolManager
Modifier and Type | Method and Description |
---|---|
ThreadPool |
getDefaultThreadPool()
Returns the first instance of ThreadPool in the ThreadPoolManager
|
ThreadPool |
getThreadPool(int numericIdForThreadpool)
This method will return an instance of the threadpool given a numeric threadpoolId.
|
ThreadPool |
getThreadPool(String threadpoolId)
This method will return an instance of the threadpool given a threadpoolId, that can be used by any component in
the app.
|
ThreadPoolChooser |
getThreadPoolChooser(int componentIndex)
Return an instance of ThreadPoolChooser based on the componentIndex that was passed as argument.
|
ThreadPoolChooser |
getThreadPoolChooser(String componentId)
Return an instance of ThreadPoolChooser based on the componentId that was passed as argument
|
int |
getThreadPoolChooserNumericId(String componentId)
Gets the numeric index associated with the componentId specified for a ThreadPoolChooser.
|
int |
getThreadPoolNumericId(String threadpoolId)
This method is used to return the numeric id of the threadpool, given a String threadpoolId.
|
String |
getThreadPoolStringId(int numericIdForThreadpool)
Return a String Id for a numericId of a threadpool managed by the threadpool manager
|
void |
setThreadPoolChooser(String componentId,
ThreadPoolChooser aThreadPoolChooser)
Sets a ThreadPoolChooser for a particular componentId in the ThreadPoolManager.
|
ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException
NoSuchThreadPoolException
- thrown when invalid threadpoolId is passed as a parameterThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException
NoSuchThreadPoolException
- thrown when invalidnumericIdForThreadpool is passed as a parameterint getThreadPoolNumericId(String threadpoolId)
String getThreadPoolStringId(int numericIdForThreadpool)
ThreadPool getDefaultThreadPool()
ThreadPoolChooser getThreadPoolChooser(String componentId)
ThreadPoolChooser getThreadPoolChooser(int componentIndex)
void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser)
int getThreadPoolChooserNumericId(String componentId)
Copyright © 2018 JBoss by Red Hat. All rights reserved.