Package net.i2p.router.transport.udp
Class PeerTestEvent
- java.lang.Object
-
- net.i2p.util.SimpleTimer2.TimedEvent
-
- net.i2p.router.transport.udp.PeerTestEvent
-
- All Implemented Interfaces:
Runnable
class PeerTestEvent extends SimpleTimer2.TimedEvent
Initiate a test (we are Alice)- Since:
- 0.9.30 moved out of UDPTransport
-
-
Field Summary
-
Fields inherited from class net.i2p.util.SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ
-
-
Constructor Summary
Constructors Constructor Description PeerTestEvent(RouterContext ctx, UDPTransport udp, PeerTestManager ptmgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceRunImmediately(boolean isIPv6)
Run within the next 5 seconds at the latestvoid
forceRunSoon(boolean isIPv6)
Run within the next 45 seconds at the latestvoid
forceRunSoon(boolean isIPv6, long delay)
Run within the specified time at the latestvoid
setIsAlive(boolean isAlive)
void
setLastTested(boolean isIPv6)
Set the last-tested timer to nowvoid
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)-
Methods inherited from class net.i2p.util.SimpleTimer2.TimedEvent
cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz
-
-
-
-
Constructor Detail
-
PeerTestEvent
PeerTestEvent(RouterContext ctx, UDPTransport udp, PeerTestManager ptmgr)
-
-
Method Detail
-
timeReached
public void timeReached()
Description copied from class:SimpleTimer2.TimedEvent
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)- Specified by:
timeReached
in classSimpleTimer2.TimedEvent
-
forceRunSoon
public void forceRunSoon(boolean isIPv6)
Run within the next 45 seconds at the latest- Since:
- 0.9.13
-
forceRunSoon
public void forceRunSoon(boolean isIPv6, long delay)
Run within the specified time at the latest- Since:
- 0.9.39
-
forceRunImmediately
public void forceRunImmediately(boolean isIPv6)
Run within the next 5 seconds at the latest- Since:
- 0.9.13
-
setIsAlive
public void setIsAlive(boolean isAlive)
-
setLastTested
public void setLastTested(boolean isIPv6)
Set the last-tested timer to now- Since:
- 0.9.13
-
-