Package org.apache.commons.pool2.impl
Class BaseGenericObjectPool.Evictor
- java.lang.Object
-
- java.util.TimerTask
-
- org.apache.commons.pool2.impl.BaseGenericObjectPool.Evictor
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- BaseGenericObjectPool<T>
class BaseGenericObjectPool.Evictor extends java.util.TimerTask
The idle object evictorTimerTask
.
-
-
Constructor Summary
Constructors Constructor Description Evictor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Run pool maintenance.
-
-
-
Method Detail
-
run
public void run()
Run pool maintenance. Evict objects qualifying for eviction and then ensure that the minimum number of idle instances are available. Since the Timer that invokes Evictors is shared for all Pools but pools may exist in different class loaders, the Evictor ensures that any actions taken are under the class loader of the factory associated with the pool.- Specified by:
run
in interfacejava.lang.Runnable
- Specified by:
run
in classjava.util.TimerTask
-
-