Class ScheduledAction

java.lang.Object
org.jivesoftware.smack.ScheduledAction
All Implemented Interfaces:
Comparable<Delayed>, Delayed

public class ScheduledAction extends Object implements Delayed
  • Method Details

    • 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()
    • getTimeToDueMillis

      public long getTimeToDueMillis()
    • compareTo

      public int compareTo(Delayed otherDelayed)
      Specified by:
      compareTo in interface Comparable<Delayed>
    • getDelay

      public long getDelay(TimeUnit unit)
      Specified by:
      getDelay in interface Delayed