Modifier and Type | Field and Description |
---|---|
private long | |
private long | |
private final long | |
private int |
Access | Constructor and Description |
---|---|
pack-priv | |
pack-priv | ScheduledFutureTask(AbstractScheduledEventExecutor executor, Runnable runnable, long nanoTime, long period)
|
pack-priv | ScheduledFutureTask(AbstractScheduledEventExecutor executor, Callable<V> callable, long nanoTime, long period)
|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public boolean | cancel(boolean
this value has no effect in this implementation. mayInterruptIfRunning)Overrides io. Implements io. |
pack-priv boolean | |
public int | compareTo(Delayed
the object to be compared. o)Implements java. |
public long | |
pack-priv static long | |
public long | |
public long | |
protected EventExecutor | executor()
Get the executor used to notify listeners when this promise is complete.
|
public long | getDelay(TimeUnit
the time unit unit)Implements java. |
public int | priorityQueueIndex(DefaultPriorityQueue<?> queue)
Implements io. priorityQueueIndex(DefaultPriorityQueue, int) for the value corresponding to
queue .
|
public void | priorityQueueIndex(DefaultPriorityQueue<?>
The queue for which the index is being set. queue, int The index as used by i)DefaultPriorityQueue .Implements io. DefaultPriorityQueue to maintain state for an element in the queue.
|
public void | run()
Overrides io. Implements java. |
private AbstractScheduledEventExecutor | |
pack-priv void | |
pack-priv ScheduledFutureTask | |
protected StringBuilder | |
private static long |
deadlineNanos | back to summary |
---|---|
private long deadlineNanos |
id | back to summary |
---|---|
private long id |
periodNanos | back to summary |
---|---|
private final long periodNanos |
queueIndex | back to summary |
---|---|
private int queueIndex |
ScheduledFutureTask | back to summary |
---|---|
pack-priv ScheduledFutureTask(AbstractScheduledEventExecutor executor, Runnable runnable, long nanoTime) |
ScheduledFutureTask | back to summary |
---|---|
pack-priv ScheduledFutureTask(AbstractScheduledEventExecutor executor, Runnable runnable, long nanoTime, long period) |
ScheduledFutureTask | back to summary |
---|---|
pack-priv ScheduledFutureTask(AbstractScheduledEventExecutor executor, Callable<V> callable, long nanoTime, long period) |
ScheduledFutureTask | back to summary |
---|---|
pack-priv ScheduledFutureTask(AbstractScheduledEventExecutor executor, Callable<V> callable, long nanoTime) |
cancel | back to summary |
---|---|
public boolean cancel(boolean mayInterruptIfRunning) Overrides io. Implements io. Doc from io. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
|
cancelWithoutRemove | back to summary |
---|---|
pack-priv boolean cancelWithoutRemove(boolean mayInterruptIfRunning) |
compareTo | back to summary |
---|---|
public int compareTo(Delayed o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that |
deadlineNanos | back to summary |
---|---|
public long deadlineNanos() |
deadlineToDelayNanos | back to summary |
---|---|
pack-priv static long deadlineToDelayNanos(long currentTimeNanos, long deadlineNanos) |
delayNanos | back to summary |
---|---|
public long delayNanos() |
delayNanos | back to summary |
---|---|
public long delayNanos(long currentTimeNanos) |
executor | back to summary |
---|---|
protected EventExecutor executor() Overrides io. Doc from io. Get the executor used to notify listeners when this promise is complete.
It is assumed this executor will protect against
|
getDelay | back to summary |
---|---|
public long getDelay(TimeUnit unit) Implements java. Doc from java. Returns the remaining delay associated with this object, in the given time unit. |
priorityQueueIndex | back to summary |
---|---|
public int priorityQueueIndex(DefaultPriorityQueue<?> queue) Implements io. Doc from io. Get the last value set by Throwing exceptions from this method will result in undefined behavior.
|
priorityQueueIndex | back to summary |
---|---|
public void priorityQueueIndex(DefaultPriorityQueue<?> queue, int i) Implements io. Doc from io. Used by Throwing exceptions from this method will result in undefined behavior.
|
run | back to summary |
---|---|
public void run() Overrides io. Implements java. Doc from java. Sets this Future to the result of its computation unless it has been cancelled.
|
scheduledExecutor | back to summary |
---|---|
private AbstractScheduledEventExecutor scheduledExecutor() |
setConsumed | back to summary |
---|---|
pack-priv void setConsumed() |
setId | back to summary |
---|---|
pack-priv ScheduledFutureTask |
toStringBuilder | back to summary |
---|---|
protected StringBuilder toStringBuilder() Overrides io.
|
validatePeriod | back to summary |
---|---|
private static long validatePeriod(long period) |