E
- Type of Member Objectpublic class LeakCheckingAsyncObjectPool<E> extends AsyncObjectPool<E>
AsyncObjectPool.PoolMemberHolder<T>
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LEAK_LOG_INTERVAL
Default leak log interval in milliseconds.
|
static long |
DEFAULT_MAX_HOLD_TIME_MILLIS
DEFAULT hold time in milliseconds.
|
protected long |
leakLogIntervalMillis
Leak log interval.
|
protected long |
maxHoldTimeMillis
Max hold time.
|
reconcileCount
Constructor and Description |
---|
LeakCheckingAsyncObjectPool(AsyncPoolMemberManager<E> pobjectManager,
int ppoolSize,
Executor ptaskExecutor)
Creates a Leak checking AsyncObject Pool with default parameters for max hold time and log intervals.
|
Modifier and Type | Method and Description |
---|---|
long |
getLeakLogIntervalMillis()
Gets the leak log interval.
|
long |
getMaxHoldTimeMillis()
Gets max hold time.
|
void |
setLeakLogIntervalMillis(long pleakLogIntervalMillis)
Sets the leak log interval.
|
void |
setMaxHoldTimeMillis(long pmaxHoldTimeMillis)
Sets the max hold time.
|
asyncBorrow, borrow, getPoolSize, memberIterator, printStatus, returnToPool, setPoolSize, syncBorrow
public static long DEFAULT_MAX_HOLD_TIME_MILLIS
public static long DEFAULT_LEAK_LOG_INTERVAL
protected long maxHoldTimeMillis
protected long leakLogIntervalMillis
public LeakCheckingAsyncObjectPool(AsyncPoolMemberManager<E> pobjectManager, int ppoolSize, Executor ptaskExecutor)
pobjectManager
- Object Manager to Create and Destroy Pool member objectsppoolSize
- Pool SizeptaskExecutor
- Executor to use. Mandatory in case of async usage, not needed otherwisepublic long getMaxHoldTimeMillis()
public void setMaxHoldTimeMillis(long pmaxHoldTimeMillis)
pmaxHoldTimeMillis
- Max Hold Timepublic long getLeakLogIntervalMillis()
public void setLeakLogIntervalMillis(long pleakLogIntervalMillis)
pleakLogIntervalMillis
- Leak Log intervalCopyright © 2013- Suresh Mahalingam. All Rights Reserved.