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
  • Constructor Details

  • Method Details

    • 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 class SimpleTimer2.TimedEvent
    • reschedule

      public void reschedule(long delay)
      Just to consolidate the logging
      Overrides:
      reschedule in class SimpleTimer2.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