public class ThreadPoolManagerImpl extends Object implements ThreadPoolManager
| Constructor and Description |
|---|
ThreadPoolManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
public void close()
close in interface Closeableclose in interface AutoCloseablepublic ThreadPool getThreadPool(String threadpoolId) throws NoSuchThreadPoolException
getThreadPool in interface ThreadPoolManagerNoSuchThreadPoolException - thrown when invalid threadpoolId is passed
as a parameterpublic ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException
getThreadPool in interface ThreadPoolManagerNoSuchThreadPoolException - thrown when invalidnumericIdForThreadpool is passed
as a parameterpublic int getThreadPoolNumericId(String threadpoolId)
getThreadPoolNumericId in interface ThreadPoolManagerpublic String getThreadPoolStringId(int numericIdForThreadpool)
getThreadPoolStringId in interface ThreadPoolManagerpublic ThreadPool getDefaultThreadPool()
getDefaultThreadPool in interface ThreadPoolManagerpublic ThreadPoolChooser getThreadPoolChooser(String componentId)
getThreadPoolChooser in interface ThreadPoolManagerpublic ThreadPoolChooser getThreadPoolChooser(int componentIndex)
getThreadPoolChooser in interface ThreadPoolManagerpublic void setThreadPoolChooser(String componentId, ThreadPoolChooser aThreadPoolChooser)
setThreadPoolChooser in interface ThreadPoolManagerpublic int getThreadPoolChooserNumericId(String componentId)
getThreadPoolChooserNumericId in interface ThreadPoolManagerCopyright © 2018 JBoss by Red Hat. All rights reserved.