private class TimeoutPriorityQueueImpl.TimeoutExtImpl extends java.lang.Object implements TimeoutExt
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
DONE
Done
|
(package private) int |
index
Index in the queue
|
(package private) TimeoutTarget |
target
The timeout target
|
(package private) long |
time
Time of the timeout
|
(package private) static int |
TIMEOUT
In timeout
|
| Modifier | Constructor and Description |
|---|---|
private |
TimeoutExtImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel this timeout.
|
void |
done()
Mark the work as done
|
long |
getTime() |
TimeoutTarget |
getTimeoutTarget()
Get the target of this timeout
|
static final int DONE
static final int TIMEOUT
int index
long time
TimeoutTarget target
public long getTime()
getTime in interface TimeoutExtpublic TimeoutTarget getTimeoutTarget()
TimeoutExtgetTimeoutTarget in interface TimeoutExtpublic void done()
TimeoutExtdone in interface TimeoutExtpublic boolean cancel()
Timeout