|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.thread.WakeupManager.Ticket
public static class WakeupManager.Ticket
A ticket that can be used for cancelling a future task. It
describes the task itself as well. The WakeupManager.newTicket
method
can be used by subclasses of WakeupManager
to
create new Ticket
instances.
Field Summary | |
---|---|
private long |
breaker
Tie beaker used when two tickets have the same value for when |
WakeupManager.ThreadDesc |
desc
The ThreadDesc , or null if none. |
Runnable |
task
The task object to be executed |
long |
when
When the task should occur. |
Constructor Summary | |
---|---|
private |
WakeupManager.Ticket(long when,
Runnable task,
WakeupManager.ThreadDesc threadDesc,
long breaker)
|
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final long when
public final Runnable task
public final WakeupManager.ThreadDesc desc
ThreadDesc
, or null
if none.
private final long breaker
Constructor Detail |
---|
private WakeupManager.Ticket(long when, Runnable task, WakeupManager.ThreadDesc threadDesc, long breaker)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |