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

private class PeerState2.ACKTimerextends SimpleTimer2.TimedEvent
A timer to send an ack-only packet.
  • Constructor Details

    • ACKTimer

      public ACKTimer()
      Caller must schedule.
  • Method Details

    • schedule

      public void schedule()
      Ack soon, based on the current RTT.
    • scheduleImmediate

      public void scheduleImmediate()
      Ack almost immediately.
    • timeReached

      public void timeReached()
      Send an ack-only packet, unless acks were already sent as indicated by _wantACKSendSince == 0. Will not requeue unless the acks don't all fit (unlikely).
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent