java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.client.streaming.impl.Connection.ActivityTimer
All Implemented Interfaces:
Runnable
Enclosing class:
Connection

private class Connection.ActivityTimerextends SimpleTimer2.TimedEvent
Activity timer.
  • Constructor Details

    • ActivityTimer

      public ActivityTimer()
      Registers the inactivity event on the connection timer with a 5 second fuzz.
  • Method Details

    • timeReached

      public void timeReached()
      Perform the configured inactivity action.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent
    • getTimeLeft

      public final long getTimeLeft()
      Time left before the inactivity timeout.
      Returns:
      the time left