java.util.concurrent.RunnableScheduledFuture<V> |
Class Overview
A ScheduledFuture
that is Runnable
. Successful
execution of the run method causes completion of the
Future and allows access to its results.
Summary
Public Methods |
abstract
boolean
|
isPeriodic()
Returns true if this is a periodic task.
|
[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.lang.Runnable
abstract
void
|
run()
Starts executing the active part of the class' code.
|
|
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.
|
|
From interface
java.util.concurrent.RunnableFuture
abstract
void
|
run()
Sets this Future to the result of its computation
unless it has been cancelled.
|
|
Public Methods
public
abstract
boolean
isPeriodic
()
Returns true if this is a periodic task. A periodic task may
re-run according to some schedule. A non-periodic task can be
run only once.
Returns
- true if this task is periodic