private static class PoolUtils.KeyedObjectPoolMinIdleTimerTask<K,V>
extends java.util.TimerTask
Modifier and Type | Field and Description |
---|---|
private K |
key
Key to ensure minIdle for
|
private KeyedObjectPool<K,V> |
keyedPool
Keyed object pool
|
private int |
minIdle
Minimum number of idle instances.
|
Constructor and Description |
---|
KeyedObjectPoolMinIdleTimerTask(KeyedObjectPool<K,V> keyedPool,
K key,
int minIdle)
Create a new KeyedObjecPoolMinIdleTimerTask.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
java.lang.String |
toString() |
private final int minIdle
private final K key
private final KeyedObjectPool<K,V> keyedPool
KeyedObjectPoolMinIdleTimerTask(KeyedObjectPool<K,V> keyedPool, K key, int minIdle) throws java.lang.IllegalArgumentException
keyedPool
- keyed object poolkey
- key to ensure minimum number of idle instancesminIdle
- minimum number of idle instancesjava.lang.IllegalArgumentException
- if the key is null