|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.workermanager.keepalive.DelayedTask
public class DelayedTask
Delayed Task to keep tasks in a temporal ordering. Note: this class has a natural ordering that is inconsistent with equals.
Constructor Summary | |
---|---|
DelayedTask(Task task,
long delay,
java.util.concurrent.TimeUnit timeUnit)
The constructor of DelayedTask. |
Method Summary | |
---|---|
int |
compareTo(java.util.concurrent.Delayed arg0)
Note: this class has a natural ordering that is inconsistent with equals. |
boolean |
equals(java.lang.Object obj)
Note: this class has a natural ordering that is inconsistent with equals DelayedTasks are considered equal when their task ID matches, no matter what the compareTo method would determine. |
long |
getDelay(java.util.concurrent.TimeUnit unit)
|
Task |
getTask()
Returns the task. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelayedTask(Task task, long delay, java.util.concurrent.TimeUnit timeUnit)
task
- the task.delay
- the delay.timeUnit
- the TineUnit for the delay.Method Detail |
---|
public int compareTo(java.util.concurrent.Delayed arg0)
compareTo
in interface java.lang.Comparable<java.util.concurrent.Delayed>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public long getDelay(java.util.concurrent.TimeUnit unit)
getDelay
in interface java.util.concurrent.Delayed
public Task getTask()
|
SMILA 1.0 API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |