public final class RegularJanitor
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RegularJanitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSweeper(Sweeper sweeper,
boolean singleClass)
add a new sweeper
|
static void |
feierabend() |
static RegularJanitor |
getJanitor()
get the singleton janitor
|
boolean |
hasSweeper(java.lang.Object sweeper) |
int |
numSweepers() |
void |
setInterval(int interval)
set the interval between sweeps in seconds
|
void |
startSweep(int firstInterval) |
java.lang.String |
toString() |
public void setInterval(int interval)
interval - public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int numSweepers()
public void addSweeper(Sweeper sweeper, boolean singleClass)
sweeper - singleClass - if true, make sure we only have one of sweeper of this type running at any given timepublic boolean hasSweeper(java.lang.Object sweeper)
sweeper - public void startSweep(int firstInterval)
firstInterval - the time in seconds to wait prior to the first sweep, if 0 then don't wait if<0 then use intervalpublic static void feierabend()
public static RegularJanitor getJanitor()