java.util.concurrent.ScheduledFuture<V> |
Known Indirect Subclasses
|
Class Overview
A delayed result-bearing action that can be cancelled.
Usually a scheduled future is the result of scheduling
a task with a ScheduledExecutorService
.
Summary
[Expand]
Inherited Methods |
From interface
java.lang.Comparable
abstract
int
|
compareTo(T another)
Compares this object to the specified object to determine their relative
order.
|
|
From interface
java.util.concurrent.Delayed
abstract
long
|
getDelay(TimeUnit unit)
Returns the remaining delay associated with this object, in the
given time unit.
|
|
From interface
java.util.concurrent.Future
abstract
boolean
|
cancel(boolean mayInterruptIfRunning)
Attempts to cancel execution of this task.
|
abstract
V
|
get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
abstract
V
|
get(long timeout, TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
abstract
boolean
|
isCancelled()
Returns true if this task was cancelled before it completed
normally.
|
abstract
boolean
|
isDone()
Returns true if this task completed.
|
|