Class RateMeter.Ticket

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

    public static class RateMeter.Ticket
    extends java.lang.Object
    implements java.util.concurrent.Delayed, java.lang.AutoCloseable
    • Method Summary

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

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

      • getDelay

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

        public int compareTo​(java.util.concurrent.Delayed o)
        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
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception