Package org.jivesoftware.smack
Class ScheduledAction
- java.lang.Object
-
- org.jivesoftware.smack.ScheduledAction
-
- All Implemented Interfaces:
Comparable<Delayed>,Delayed
public class ScheduledAction extends Object implements Delayed
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Cancels this scheduled action.intcompareTo(Delayed otherDelayed)longgetDelay(TimeUnit unit)longgetTimeToDueMillis()booleanisDue()
-
-
-
Method Detail
-
cancel
public boolean cancel()
Cancels this scheduled action.- Returns:
trueif the scheduled action was still pending and got removed,falseotherwise.
-
isDue
public boolean isDue()
-
getTimeToDueMillis
public long getTimeToDueMillis()
-
compareTo
public int compareTo(Delayed otherDelayed)
- Specified by:
compareToin interfaceComparable<Delayed>
-
-