public class BlockingPool extends NonBlockingPool
addedIdleBeanWork, addedResizeTask, inResizing, singletonBeanPool
_logger, appName, beanId, configData, containerClassLoader, createdCount, destroyedCount, ejbName, factory, idleTimeoutInSeconds, list, maxPoolSize, maxWaitTimeInMillis, modName, poolName, poolProbeNotifier, poolReturned, poolSuccess, resizeQuantity, steadyPoolSize, waitCount
Constructor and Description |
---|
BlockingPool(long containerId,
String name,
ObjectFactory sessionCtxFactory,
int steadyPoolSize,
int poolResizeQuantity,
int maxPoolSize,
int poolIdleTimeoutInSeconds,
ClassLoader loader,
boolean singletonBeanPool,
int maxWaitTimeInMillis) |
Modifier and Type | Method and Description |
---|---|
void |
destroyObject(Object object)
Destroys an Object.
|
Object |
getObject(Object param)
Get an object from the pool within the specified time.
|
protected void |
remove(int count) |
void |
returnObject(Object object)
Return an object back to the pool.
|
close, doResize, getAllAttrValues, preload, prepopulate, removeIdleObjects
appendStats, getAllMonitoredAttrbuteValues, getCreatedCount, getDestroyedCount, getIdleTimeoutInSeconds, getJmsMaxMessagesLoad, getMaxPoolSize, getMaxWaitTimeInMillis, getNumBeansInPool, getNumThreadsWaiting, getObject, getObject, getPoolSuccess, getResizeQuantity, getSize, getSteadyPoolSize, getTotalBeansCreated, getTotalBeansDestroyed, getWaitCount, setConfigData, setContainerClassLoader, setInfo, unregisterProbeProvider
public BlockingPool(long containerId, String name, ObjectFactory sessionCtxFactory, int steadyPoolSize, int poolResizeQuantity, int maxPoolSize, int poolIdleTimeoutInSeconds, ClassLoader loader, boolean singletonBeanPool, int maxWaitTimeInMillis)
public Object getObject(Object param) throws PoolException
Pool
getObject
in interface Pool
getObject
in class NonBlockingPool
PoolException
- if an object cannot be createdpublic void returnObject(Object object)
returnObject
in interface Pool
returnObject
in class NonBlockingPool
public void destroyObject(Object object)
destroyObject
in interface Pool
destroyObject
in class NonBlockingPool
object
- Object to be destroyed.protected void remove(int count)
remove
in class NonBlockingPool
Copyright © 2019. All rights reserved.