public class SimpleTimer2 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleTimer2.TimedEvent
Similar to SimpleTimer.TimedEvent but users must extend instead of implement,
and all schedule and cancel methods are through this class rather than SimpleTimer2.
|
Modifier | Constructor and Description |
---|---|
|
SimpleTimer2(I2PAppContext context)
To be instantiated by the context.
|
protected |
SimpleTimer2(I2PAppContext context,
String name)
To be instantiated by the context.
|
protected |
SimpleTimer2(I2PAppContext context,
String name,
boolean prestartAllThreads)
To be instantiated by the context.
|
Modifier and Type | Method and Description |
---|---|
static SimpleTimer2 |
getInstance()
If you have a context, use context.simpleTimer2() instead
|
void |
stop()
Stops the SimpleTimer.
|
String |
toString() |
public SimpleTimer2(I2PAppContext context)
protected SimpleTimer2(I2PAppContext context, String name)
protected SimpleTimer2(I2PAppContext context, String name, boolean prestartAllThreads)
public static SimpleTimer2 getInstance()
public void stop()