class PeerTestEvent extends SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ| Constructor and Description |
|---|
PeerTestEvent(RouterContext ctx,
UDPTransport udp,
PeerTestManager ptmgr)Peer test event. |
| 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()timeReached. |
cancel, forceReschedule, reschedule, run, schedule, setFuzz, setPool, 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()
timeReached in class SimpleTimer2.TimedEvent