class PeerTestEvent extends SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ| Constructor and Description |
|---|
PeerTestEvent(RouterContext ctx,
UDPTransport udp,
PeerTestManager ptmgr) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceRunImmediately(boolean isIPv6)
Run within the next 5 seconds at the latest
|
void |
forceRunSoon(boolean isIPv6)
Run within the next 45 seconds at the latest
|
void |
forceRunSoon(boolean isIPv6,
long delay)
Run within the specified time at the latest
|
void |
reschedule(long delay)
Just to consolidate the logging
|
void |
setIsAlive(boolean isAlive)
Caller MUST also call schedule(), reschedule(),
forceRunSoon(), or forceRunImmediately()
|
void |
setLastTested(boolean isIPv6)
Set the last-tested timer to now
|
void |
timeReached()
Simple interface for events to be queued up and notified on expiration
the time requested has been reached (this call should NOT block,
otherwise the whole SimpleTimer gets backed up)
|
cancel, forceReschedule, reschedule, run, schedule, setFuzz, toStringPeerTestEvent(RouterContext ctx, UDPTransport udp, PeerTestManager ptmgr)
public void forceRunImmediately(boolean isIPv6)
public void forceRunSoon(boolean isIPv6)
public void forceRunSoon(boolean isIPv6,
long delay)
public void reschedule(long delay)
reschedule in class SimpleTimer2.TimedEventdelay - timeout in millisecondspublic void setIsAlive(boolean isAlive)
public void setLastTested(boolean isIPv6)
public void timeReached()
SimpleTimer2.TimedEventtimeReached in class SimpleTimer2.TimedEvent