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

private class UDPTransport.ExpirePeerEventextends SimpleTimer2.TimedEvent
Timer expiring idle peers and pinging the rest.
  • Field Details

    • _expireBuffer

      private final List<PeerState> _expireBuffer
      Scratch list for the peers examined each loop.
    • _alive

      private volatile boolean _alive
      True while the timer should keep rescheduling.
    • _runCount

      private int _runCount
      Loops run since the transport started.
    • _lastLoopShort

      private boolean _lastLoopShort
      True if the last loop used the short interval.
  • Constructor Details

    • ExpirePeerEvent

      public ExpirePeerEvent()
      Expire peer event.
  • Method Details

    • timeReached

      public void timeReached()
      Time reached.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent
    • setIsAlive

      public void setIsAlive(boolean isAlive)
      Alive flag.
      Parameters:
      isAlive - true to mark the job alive and reschedule it at the long loop time, false to let it wind down