public final class AsyncTaskProcessorThreadPool extends ObjectPool<AsyncTaskProcessorThread>
WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_RETURN_NULL, WHEN_EXHAUSTED_WAIT, WHEN_EXHAUSTED_WAIT_RETURN_NULL| Modifier | Constructor and Description |
|---|---|
protected |
AsyncTaskProcessorThreadPool(String name,
int minSize,
int maxIdle,
int maxSize,
AsyncTaskProcessorThreadListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected AsyncTaskProcessorThread |
createPoolObject()
Create a new pool object
|
protected void |
destroyPoolObject(AsyncTaskProcessorThread thread)
Destroy a pool object
|
borrow, close, exhaustionPolicyAsString, getThreadPoolAvailableCount, getThreadPoolExhaustionPolicy, getThreadPoolMaxIdle, getThreadPoolMaxSize, getThreadPoolMinSize, getThreadPoolPendingWaits, getThreadPoolSize, getThreadPoolWaitTimeout, init, releaseprotected AsyncTaskProcessorThreadPool(String name, int minSize, int maxIdle, int maxSize, AsyncTaskProcessorThreadListener listener) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected AsyncTaskProcessorThread createPoolObject() throws Exception
ObjectPoolcreatePoolObject in class ObjectPool<AsyncTaskProcessorThread>Exception - on creation errorprotected void destroyPoolObject(AsyncTaskProcessorThread thread) throws Exception
ObjectPooldestroyPoolObject in class ObjectPool<AsyncTaskProcessorThread>thread - the object to destroyException - on release errorCopyright © 2019. All rights reserved.