@Beta @GwtIncompatible public interface ListeningScheduledExecutorService extends 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 |
---|---|
<V> ListenableScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ListenableScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ListenableScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ListenableScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
invokeAll, invokeAll, submit, submit, submit
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
ListenableScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
<V> ListenableScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule
in interface ScheduledExecutorService
ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate
in interface ScheduledExecutorService
ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
scheduleWithFixedDelay
in interface ScheduledExecutorService
Copyright © 2010–2017. All rights reserved.