RunnableFuture and Comparable (sorting by their next deadline),
with additional methods for scheduling, periodicity, and delay.
| Modifier and Type | Method and Description |
|---|---|
| public RunnableScheduledFuture | addListener(FutureListener<? super V>
The listener to be called when this future completes. The listener will be passed this future as
an argument. listener)Redeclares io. |
| public <C> RunnableScheduledFuture | addListener(C
The context object that will be passed to the listener when this future completes. context, FutureContextListener<? super C, ? super V> The listener to be called when this future completes. The listener will be passed the given
context, and this future. listener)Redeclares io. |
| public long | |
| public long | |
| public long | delayNanos(long currentTimeNanos)
Returns the delay in nanos (taking the given |
| public boolean | Returns: true if this task is periodic, otherwise false.Return |
| addListener | back to summary |
|---|---|
| public RunnableScheduledFuture Redeclares io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
| |
| addListener | back to summary |
|---|---|
| public <C> RunnableScheduledFuture Redeclares io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
| |
| deadlineNanos | back to summary |
|---|---|
| public long deadlineNanos() Returns the deadline in nanos when the | |
| delayNanos | back to summary |
|---|---|
| public long delayNanos() Returns the delay in nanos when the | |
| delayNanos | back to summary |
|---|---|
| public long delayNanos(long currentTimeNanos) Returns the delay in nanos (taking the given | |
| isPeriodic | back to summary |
|---|---|
| public boolean isPeriodic() Return
| |