public final class ScheduledRunnable extends Object implements Comparable<ScheduledRunnable>, AsyncCancellable
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
int |
compareTo(ScheduledRunnable o) |
void |
complete() |
static ScheduledRunnable |
create(long timestamp,
Runnable runnable) |
boolean |
equals(Object o) |
Runnable |
getRunnable() |
long |
getTimestamp() |
int |
hashCode() |
boolean |
isCancelled() |
boolean |
isComplete() |
String |
toString() |
public static ScheduledRunnable create(long timestamp, Runnable runnable)
public int compareTo(ScheduledRunnable o)
compareTo in interface Comparable<ScheduledRunnable>public void cancel()
cancel in interface AsyncCancellablepublic void complete()
public long getTimestamp()
public Runnable getRunnable()
public boolean isCancelled()
public boolean isComplete()
Copyright © 2019. All rights reserved.