@GwtIncompatible public interface ListeningScheduledExecutorService extends java.util.concurrent.ScheduledExecutorService, ListeningExecutorService
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 |
---|---|
default <V> ListenableScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> callable,
java.time.Duration delay)
Duration-based overload of
schedule(Callable, long, TimeUnit) . |
<V> ListenableScheduledFuture<V> |
schedule(java.util.concurrent.Callable<V> callable,
long delay,
java.util.concurrent.TimeUnit unit) |
default ListenableScheduledFuture<?> |
schedule(java.lang.Runnable command,
java.time.Duration delay)
Duration-based overload of
schedule(Runnable, long, TimeUnit) . |
ListenableScheduledFuture<?> |
schedule(java.lang.Runnable command,
long delay,
java.util.concurrent.TimeUnit unit) |
default ListenableScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
java.time.Duration initialDelay,
java.time.Duration period)
Duration-based overload of
scheduleAtFixedRate(Runnable, long, long, TimeUnit) . |
ListenableScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit) |
default ListenableScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable command,
java.time.Duration initialDelay,
java.time.Duration delay)
Duration-based overload of
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) . |
ListenableScheduledFuture<?> |
scheduleWithFixedDelay(java.lang.Runnable command,
long initialDelay,
long delay,
java.util.concurrent.TimeUnit unit) |
invokeAll, invokeAll, submit, submit, submit
ListenableScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface java.util.concurrent.ScheduledExecutorService
default ListenableScheduledFuture<?> schedule(java.lang.Runnable command, java.time.Duration delay)
schedule(Runnable, long, TimeUnit)
.<V> ListenableScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
schedule
in interface java.util.concurrent.ScheduledExecutorService
default <V> ListenableScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, java.time.Duration delay)
schedule(Callable, long, TimeUnit)
.ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
scheduleAtFixedRate
in interface java.util.concurrent.ScheduledExecutorService
default ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, java.time.Duration initialDelay, java.time.Duration period)
scheduleAtFixedRate(Runnable, long, long, TimeUnit)
.ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
scheduleWithFixedDelay
in interface java.util.concurrent.ScheduledExecutorService
default ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, java.time.Duration initialDelay, java.time.Duration delay)
scheduleWithFixedDelay(Runnable, long, long, TimeUnit)
.Copyright © 2010–2021. All rights reserved.