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
|
boolean |
hasSweeper(Object sweeper) |
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 Object
Object.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 boolean hasSweeper(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()
Copyright © 2018. All rights reserved.