|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.TimerTask
com.cafesoft.core.pool.ObjectPoolCleanUpTimerTask
public class ObjectPoolCleanUpTimerTask
TimerTask that cleans up idle objects that are not being used.
TimerTask| Constructor Summary | |
|---|---|
ObjectPoolCleanUpTimerTask(ObjectPool objectPool)
Create a new ObjectPoolCleanUpTimerTask object. |
|
ObjectPoolCleanUpTimerTask(ObjectPool objectPool,
int shrinkIncrement)
Create a new ObjectPoolCleanUpTimerTask object. |
|
| Method Summary | |
|---|---|
void |
run()
The action to be performed by this timer task. |
void |
setShrinkIncrement(int shrinkIncrement)
Set the shrink increment |
| Methods inherited from class java.util.TimerTask |
|---|
cancel, scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectPoolCleanUpTimerTask(ObjectPool objectPool)
objectPool - the object pool to clean up
public ObjectPoolCleanUpTimerTask(ObjectPool objectPool,
int shrinkIncrement)
objectPool - the object pool to clean upshrinkIncrement - the amount to shrink the pool by| Method Detail |
|---|
public void setShrinkIncrement(int shrinkIncrement)
shrinkIncrement - the new shrink incrementpublic void run()
run in interface Runnablerun in class TimerTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||