@Deprecated public class SimpleScheduler extends Object
Constructor and Description |
---|
SimpleScheduler(I2PAppContext context)
Deprecated.
in 0.9.20, replaced by SimpleTimer2
|
Modifier and Type | Method and Description |
---|---|
void |
addEvent(SimpleTimer.TimedEvent event,
long timeoutMs)
Deprecated.
Queue up the given event to be fired no sooner than timeoutMs from now.
|
void |
addPeriodicEvent(SimpleTimer.TimedEvent event,
long timeoutMs)
Deprecated.
Queue up the given event to be fired after timeoutMs and every
timeoutMs thereafter.
|
void |
addPeriodicEvent(SimpleTimer.TimedEvent event,
long initialDelay,
long timeoutMs)
Deprecated.
Queue up the given event to be fired after initialDelay and every
timeoutMs thereafter.
|
static SimpleScheduler |
getInstance()
Deprecated.
in 0.9.20, replaced by SimpleTimer2
|
void |
stop()
Deprecated.
Stops the SimpleScheduler.
|
@Deprecated public SimpleScheduler(I2PAppContext context)
@Deprecated public static SimpleScheduler getInstance()
public void stop()
public void addEvent(SimpleTimer.TimedEvent event, long timeoutMs)
event
- timeoutMs
- public void addPeriodicEvent(SimpleTimer.TimedEvent event, long timeoutMs)
public void addPeriodicEvent(SimpleTimer.TimedEvent event, long initialDelay, long timeoutMs)
event
- initialDelay
- (ms)timeoutMs
-