public static class WakeupManager.Ticket extends Object implements Comparable<WakeupManager.Ticket>
WakeupManager.newTicket method
can be used by subclasses of WakeupManager to
create new Ticket instances.| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier | Constructor and Description |
|---|---|
private |
Ticket(long when,
Runnable task,
WakeupManager.ThreadDesc threadDesc,
long breaker) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(WakeupManager.Ticket o) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public final long when
public final Runnable task
public final WakeupManager.ThreadDesc desc
ThreadDesc, or null if none.private final long breaker
private Ticket(long when,
Runnable task,
WakeupManager.ThreadDesc threadDesc,
long breaker)
public int compareTo(WakeupManager.Ticket o)
compareTo in interface Comparable<WakeupManager.Ticket>Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.