java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.transport.udp.PeerTestManager.DelayTest
All Implemented Interfaces:
Runnable
Enclosing class:
PeerTestManager

private class PeerTestManager.DelayTestextends SimpleTimer2.TimedEvent
Wait for RI.
  • Field Details

    • from

      private final RemoteHostId from
      The host the relay request came from.
    • fromPeer

      private final PeerState2 fromPeer
      The peer state of the requester.
    • msg

      private final int msg
      The message type being relayed.
    • hash

      private final Hash hash
      The target peer's hash.
    • data

      private final byte[] data
      The relayed payload.
    • count

      private volatile int count
      Relays already sent for this request.
    • DELAY

      private static final long DELAY
      Delay between relay retries.
      See Also:
  • Constructor Details

    • DelayTest

      public DelayTest(RemoteHostId f, PeerState2 fp, int m, Hash h, byte[] d)
      Schedules itself.
      Parameters:
      f - remote host id of the sender
      fp - peer state of the sender
      m - message number, 2 or 4
      h - hash of the RouterInfo awaited
      d - signed peer test data to retry with
  • Method Details

    • timeReached

      public void timeReached()
      Description copied from class: SimpleTimer2.TimedEvent
      Called when this event's scheduled time arrives. Must NOT block. For periodic events, call schedule(period) at the end to self-reschedule.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent