Class ScheduledAction

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

    public class ScheduledAction
    extends java.lang.Object
    implements java.util.concurrent.Delayed
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean cancel()
      Cancels this scheduled action.
      int compareTo​(java.util.concurrent.Delayed otherDelayed)  
      long getDelay​(java.util.concurrent.TimeUnit unit)  
      long getTimeToDueMillis()  
      boolean isDue()  
      • Methods inherited from class java.lang.Object

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

      • cancel

        public boolean cancel()
        Cancels this scheduled action.
        Returns:
        true if the scheduled action was still pending and got removed, false otherwise.
      • isDue

        public boolean isDue()
      • compareTo

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

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