public class ScheduledAction
extends java.lang.Object
implements java.util.concurrent.Delayed
| Modifier and Type | Method and 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() |
public boolean cancel()
true if the scheduled action was still pending and got removed, false otherwise.public boolean isDue()
public long getTimeToDueMillis()
public int compareTo(java.util.concurrent.Delayed otherDelayed)
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>public long getDelay(java.util.concurrent.TimeUnit unit)
getDelay in interface java.util.concurrent.Delayed