# RunnableScheduledFuture

public interface **RunnableScheduledFuture** implements [RunnableFuture](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/RunnableFuture.html)\<V\> [ScheduledFuture](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/ScheduledFuture.html)\<V\> A `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/ScheduledFuture.html` that is `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Runnable.html`. Successful
execution of the `run` method causes completion of the
`Future` and allows access to its results.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/FutureTask.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Executor.html`

### Public Method Summary

|---|---|
| abstract boolean | [isPeriodic](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/RunnableScheduledFuture.html#isPeriodic())() Returns `true` if this task is periodic. |

### Inherited Method Summary

From interface [java.util.concurrent.RunnableFuture](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/RunnableFuture.html)

|---|---|
| abstract void | [run](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/RunnableFuture.html#run())() Sets this Future to the result of its computation unless it has been cancelled. |

From interface [java.lang.Runnable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Runnable.html)

|---|---|
| abstract void | [run](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Runnable.html#run())() When an object implementing interface `Runnable` is used to create a thread, starting the thread causes the object's `run` method to be called in that separately executing thread. |

From interface [java.util.concurrent.Future](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html)

|---|---|
| abstract boolean | [cancel](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html#cancel(boolean))(boolean mayInterruptIfRunning) Attempts to cancel execution of this task. |
| abstract V | [get](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html#get(long,%20java.util.concurrent.TimeUnit))(long timeout, [TimeUnit](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/TimeUnit.html) 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](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html#get())() Waits if necessary for the computation to complete, and then retrieves its result. |
| abstract boolean | [isCancelled](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html#isCancelled())() Returns `true` if this task was cancelled before it completed normally. |
| abstract boolean | [isDone](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Future.html#isDone())() Returns `true` if this task completed. |

From interface [java.util.concurrent.Delayed](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Delayed.html)

|---|---|
| abstract long | [getDelay](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Delayed.html#getDelay(java.util.concurrent.TimeUnit))([TimeUnit](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/TimeUnit.html) unit) Returns the remaining delay associated with this object, in the given time unit. |

From interface [java.lang.Comparable](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Comparable.html)

|---|---|
| abstract int | [compareTo](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Comparable.html#compareTo(T))([Delayed](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/concurrent/Delayed.html) o) Compares this object with the specified object for order. |

## Public Methods

#### public abstract boolean
**isPeriodic**
()

Returns `true` if this task is periodic. 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