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
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 - 
Method Summary
Modifier and TypeMethodDescriptionvoidforceRunImmediately(boolean isIPv6) Run within the next 5 seconds at the latestvoidforceRunSoon(boolean isIPv6) Run within the next 45 seconds at the latestvoidforceRunSoon(boolean isIPv6, long delay) Run within the specified time at the latestvoidreschedule(long delay) Just to consolidate the loggingvoidsetIsAlive(boolean isAlive) Caller MUST also call schedule(), reschedule(), forceRunSoon(), or forceRunImmediately()voidsetLastTested(boolean isIPv6) Set the last-tested timer to nowvoidSimple 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, run, schedule, setFuzz, toString 
- 
Constructor Details
- 
PeerTestEvent
PeerTestEvent(RouterContext ctx, UDPTransport udp, PeerTestManager ptmgr)  
 - 
 - 
Method Details
- 
timeReached
public void timeReached()Description copied from class:SimpleTimer2.TimedEventSimple 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:
 timeReachedin classSimpleTimer2.TimedEvent
 - 
reschedule
public void reschedule(long delay) Just to consolidate the logging- Overrides:
 reschedulein classSimpleTimer2.TimedEvent- Parameters:
 delay-- Since:
 - 0.9.57
 
 - 
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) Caller MUST also call schedule(), reschedule(), forceRunSoon(), or forceRunImmediately() - 
setLastTested
public void setLastTested(boolean isIPv6) Set the last-tested timer to now- Since:
 - 0.9.13
 
 
 -