Package org.codehaus.plexus.util
Class SweeperPool.Sweeper
- java.lang.Object
-
- org.codehaus.plexus.util.SweeperPool.Sweeper
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- SweeperPool
private static class SweeperPool.Sweeper extends java.lang.Object implements java.lang.RunnablePeriodically atsweepIntervalgoes through and tests if the pool should be trimmed.
-
-
Field Summary
Fields Modifier and Type Field Description private SweeperPoolpoolprivate booleanserviceprivate intsweepIntervalprivate java.lang.Threadt
-
Constructor Summary
Constructors Constructor Description Sweeper(SweeperPool pool, int sweepInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddebug(java.lang.String msg)(package private) booleanhasStopped()(package private) voidjoin()voidrun()Run the sweeper.private voidrunSweep()voidstart()voidstop()
-
-
-
Field Detail
-
pool
private final transient SweeperPool pool
-
service
private transient boolean service
-
sweepInterval
private final transient int sweepInterval
-
t
private transient java.lang.Thread t
-
-
Constructor Detail
-
Sweeper
public Sweeper(SweeperPool pool, int sweepInterval)
-
-
Method Detail
-
run
public void run()
Run the sweeper.- Specified by:
runin interfacejava.lang.Runnable- See Also:
Runnable.run()
-
start
public void start()
-
stop
public void stop()
-
join
void join() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
hasStopped
boolean hasStopped()
-
debug
private final void debug(java.lang.String msg)
-
runSweep
private void runSweep()
-
-