ScheduledFuture
public
interface
ScheduledFuture
implements
Delayed,
Future<V>
java.util.concurrent.ScheduledFuture<V>
|
Known indirect subclasses
|
A delayed result-bearing action that can be cancelled.
Usually a scheduled future is the result of scheduling
a task with a ScheduledExecutorService
.
Summary
Inherited methods |
|
From interface
java.util.concurrent.Future
abstract
boolean
|
cancel(boolean mayInterruptIfRunning)
Attempts to cancel execution of this task.
|
default
Throwable
|
exceptionNow()
Returns the exception thrown by the task, without waiting.
|
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
V
|
get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
abstract
boolean
|
isCancelled()
Returns true if this task was cancelled before it completed
normally.
|
abstract
boolean
|
isDone()
Returns true if this task completed.
|
default
V
|
resultNow()
Returns the computed result, without waiting.
|
default
Future.State
|
state()
|
|
|