public final class RegularJanitor extends 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
|
void |
setInterval(int interval)
set the interval between sweeps in seconds
|
void |
startSweep(int firstInterval) |
String |
toString() |
public void setInterval(int interval)
interval - public String toString()
toString in class ObjectObject.toString()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 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()
Copyright © 2013. All Rights Reserved.