private static class PoolUtils.ObjectPoolMinIdleTimerTask<T>
extends java.util.TimerTask
Modifier and Type | Field and Description |
---|---|
private int |
minIdle
Minimum number of idle instances.
|
private ObjectPool<T> |
pool
Object pool
|
Constructor and Description |
---|
ObjectPoolMinIdleTimerTask(ObjectPool<T> pool,
int minIdle)
Create a new ObjectPoolMinIdleTimerTask for the given pool with the given minIdle setting.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
java.lang.String |
toString() |
private final int minIdle
private final ObjectPool<T> pool
ObjectPoolMinIdleTimerTask(ObjectPool<T> pool, int minIdle) throws java.lang.IllegalArgumentException
pool
- object poolminIdle
- number of idle instances to maintainjava.lang.IllegalArgumentException
- if the pool is null