public class RetransmissionTimer extends Object
| Constructor and Description |
|---|
RetransmissionTimer(I2PAppContext ctx,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void | addEvent(SimpleTimer2.TimedEvent event,
long timeoutMs)Schedule an event via the dedicated timer. |
SimpleTimer2 | getSharedTimer() |
void | stop()Stop the dedicated timer. |
RetransmissionTimer(I2PAppContext ctx, String name)
ctx - the application contextname - used for the timer thread namepublic void addEvent(SimpleTimer2.TimedEvent event, long timeoutMs)
event - the eventtimeoutMs - delay in mspublic SimpleTimer2 getSharedTimer()
public void stop()