java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.crypto.ratchet.ACKTimer
All Implemented Interfaces:
Runnable

class ACKTimerextends SimpleTimer2.TimedEvent
Timer for sending ratchet-layer acknowledgments when application responses are delayed, supporting NS, NSR, ACK requests, and forward next key blocks.

The vast majority of these will be cancelled before firing, when streaming sends a response. This should only fire if streaming drops completely, and for certain datagram traffic patterns.

  • Constructor Details

    • ACKTimer

      public ACKTimer(RouterContext context, Destination from, Destination to)
      ACK timer for ratchet.
      Parameters:
      context - router context for timer and logging
      from - local destination ACK will come from, non-null
      to - remote destination ACK will go to, non-null
  • 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