ScheduledExecutorService that returns ListenableFuture instances from its
ExecutorService methods. To create an instance from an existing ScheduledExecutorService, call MoreExecutors#listeningDecorator(ScheduledExecutorService).
| Modifier and Type | Method and Description |
|---|---|
| public ListenableScheduledFuture | schedule(Runnable
the task to execute command, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Redeclares java. |
| public default ListenableScheduledFuture | schedule(Runnable command, Duration delay)
Duration-based overload of |
| public <V extends @Nullable Object> ListenableScheduledFuture | schedule(Callable<V>
the function to execute callable, long the time from now to delay execution delay, TimeUnit the time unit of the delay parameter unit)Redeclares java. |
| public default <V extends @Nullable Object> ListenableScheduledFuture | schedule(Callable<V> callable, Duration delay)
Duration-based overload of |
| public ListenableScheduledFuture | scheduleAtFixedRate(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the period between successive executions period, TimeUnit the time unit of the initialDelay and period parameters unit)Redeclares java. initialDelay, then initialDelay + period, then
initialDelay + 2 * period, and so on.
|
| public default ListenableScheduledFuture | scheduleAtFixedRate(Runnable command, Duration initialDelay, Duration period)
Duration-based overload of |
| public ListenableScheduledFuture | scheduleWithFixedDelay(Runnable
the task to execute command, long the time to delay first execution initialDelay, long the delay between the termination of one
execution and the commencement of the next delay, TimeUnit the time unit of the initialDelay and delay parameters unit)Redeclares java. |
| public default ListenableScheduledFuture | scheduleWithFixedDelay(Runnable command, Duration initialDelay, Duration delay)
Duration-based overload of |
| schedule | back to summary |
|---|---|
| public ListenableScheduledFuture Redeclares java. Doc from java. Submits a one-shot task that becomes enabled after the given delay.
| |
| schedule | back to summary |
|---|---|
| public default ListenableScheduledFuture Duration-based overload of
| |
| schedule | back to summary |
|---|---|
| public <V extends @Nullable Object> ListenableScheduledFuture Redeclares java. Doc from java. Submits a value-returning one-shot task that becomes enabled after the given delay.
| |
| schedule | back to summary |
|---|---|
| public default <V extends @Nullable Object> ListenableScheduledFuture Duration-based overload of
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public ListenableScheduledFuture Redeclares java. Doc from java. Submits a periodic action that becomes enabled first after the
given initial delay, and subsequently with the given period;
that is, executions will commence after
The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.
| |
| scheduleAtFixedRate | back to summary |
|---|---|
| public default ListenableScheduledFuture Duration-based overload of
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public ListenableScheduledFuture Redeclares java. Doc from java. Submits a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. The sequence of task executions continues indefinitely until one of the following exceptional completions occur:
isDone() on the returned future will
return true.
| |
| scheduleWithFixedDelay | back to summary |
|---|---|
| public default ListenableScheduledFuture Duration-based overload of
| |