org.codehaus.plexus.util

Class SweeperPool.Sweeper

private static class SweeperPool.Sweeper extends Object implements Runnable

Periodically at sweepInterval goes through and tests if the pool should be trimmed.

Author: bert

Field Summary
SweeperPoolpool
booleanservice
intsweepInterval
Threadt
Constructor Summary
Sweeper(SweeperPool pool, int sweepInterval)
Method Summary
voiddebug(String msg)
booleanhasStopped()
voidjoin()
voidrun()
Run the seeper.
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 Thread t

Constructor Detail

Sweeper

public Sweeper(SweeperPool pool, int sweepInterval)

Method Detail

debug

private final void debug(String msg)

hasStopped

boolean hasStopped()

join

void join()

run

public void run()
Run the seeper.

See Also: java.lang.Runnable#run()

runSweep

private void runSweep()

start

public void start()

stop

public void stop()