java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.util.DecayingBloomFilter.DecayHourlyEvent
All Implemented Interfaces:
Runnable
Enclosing class:
DecayingBloomFilter

private class DecayingBloomFilter.DecayHourlyEventextends SimpleTimer2.TimedEvent
Decays at 5 minutes after the top of the hour. This ignores leap seconds.
  • Field Details

    • HOUR

      private static final long HOUR
      One hour, in ms.
      See Also:
    • LAG

      private static final long LAG
      How long past the hour rotation may wait: 5 minutes.
      See Also:
    • _currentHour

      private volatile long _currentHour
      The hour the current filter covers.
  • Constructor Details

    • DecayHourlyEvent

      DecayHourlyEvent()
      Schedules itself. Caller MUST NOT schedule.
  • Method Details

    • timeReached

      public void timeReached()
      Decay at the next hour, if the hour has changed.
      Specified by:
      timeReached in class SimpleTimer2.TimedEvent
    • getTimeTillNextHour

      private long getTimeTillNextHour()
      Side effect: sets the current hour.
      Returns:
      the milliseconds until the next hour