Package org.codehaus.plexus.util
Class SweeperPool.Sweeper
java.lang.Object
org.codehaus.plexus.util.SweeperPool.Sweeper
- All Implemented Interfaces:
Runnable
- Enclosing class:
SweeperPool
Periodically at
sweepInterval
goes through and tests if the pool should be trimmed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SweeperPool
private boolean
private final int
private Thread
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
pool
-
service
private transient boolean service -
sweepInterval
private final transient int sweepInterval -
t
-
-
Constructor Details
-
Sweeper
-
-
Method Details
-
run
public void run()Run the sweeper. -
start
public void start() -
stop
public void stop() -
join
- Throws:
InterruptedException
-
hasStopped
boolean hasStopped() -
debug
-
runSweep
private void runSweep()
-