Class BurstFilter.LogDelay

  • All Implemented Interfaces:
    java.lang.Comparable<java.util.concurrent.Delayed>, java.util.concurrent.Delayed
    Enclosing class:
    BurstFilter

    private static class BurstFilter.LogDelay
    extends java.lang.Object
    implements java.util.concurrent.Delayed
    Delay object to represent each log event that has occurred within the timespan. Consider this class private, package visibility for testing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long expireTime  
    • Constructor Summary

      Constructors 
      Constructor Description
      LogDelay​(long expireTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.util.concurrent.Delayed delayed)  
      boolean equals​(java.lang.Object o)  
      long getDelay​(java.util.concurrent.TimeUnit timeUnit)  
      int hashCode()  
      void setDelay​(long delay)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • expireTime

        private long expireTime
    • Constructor Detail

      • LogDelay

        LogDelay​(long expireTime)
    • Method Detail

      • setDelay

        public void setDelay​(long delay)
      • getDelay

        public long getDelay​(java.util.concurrent.TimeUnit timeUnit)
        Specified by:
        getDelay in interface java.util.concurrent.Delayed
      • compareTo

        public int compareTo​(java.util.concurrent.Delayed delayed)
        Specified by:
        compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object