private static class SweeperPool.Sweeper
extends java.lang.Object
implements java.lang.Runnable
sweepInterval
goes through and tests if the pool should be trimmed.Modifier and Type | Field and Description |
---|---|
private SweeperPool |
pool |
private boolean |
service |
private int |
sweepInterval |
private java.lang.Thread |
t |
Constructor and Description |
---|
Sweeper(SweeperPool pool,
int sweepInterval) |
Modifier and Type | Method and Description |
---|---|
private void |
debug(java.lang.String msg) |
(package private) boolean |
hasStopped() |
(package private) void |
join() |
void |
run()
Run the sweeper.
|
private void |
runSweep() |
void |
start() |
void |
stop() |
private final transient SweeperPool pool
private transient boolean service
private final transient int sweepInterval
private transient java.lang.Thread t
public Sweeper(SweeperPool pool, int sweepInterval)
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public void start()
public void stop()
void join() throws java.lang.InterruptedException
java.lang.InterruptedException
boolean hasStopped()
private final void debug(java.lang.String msg)
private void runSweep()