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

private class PeerTestManager.ContinueTimerextends SimpleTimer2.TimedEvent
SSU 1 or 2. We are Alice.
  • Field Details

    • _nonce

      private final long _nonce
      The nonce of the current test.
  • Constructor Details

    • ContinueTimer

      public ContinueTimer(long nonce)
      Schedules itself.
      Parameters:
      nonce - the peer test to continue when the timer fires
  • Method Details

    • timeReached

      public void timeReached()
      Decide what to do under the instance lock, then send outside it.

      The decision reads and clears _currentTest, so it needs the lock. The send builds a packet and can block, and holding the lock across that would stall runTest() and every receiveTest() path. The state captured under the lock is passed to the send explicitly.

      Specified by:
      timeReached in class SimpleTimer2.TimedEvent