Interface ListeningScheduledExecutorService
- All Superinterfaces:
AutoCloseable
,Executor
,ExecutorService
,ListeningExecutorService
,ScheduledExecutorService
@GwtIncompatible
public interface ListeningScheduledExecutorService
extends ScheduledExecutorService, ListeningExecutorService
A
ScheduledExecutorService
that returns ListenableFuture
instances from its
ExecutorService
methods. To create an instance from an existing ScheduledExecutorService
, call MoreExecutors.listeningDecorator(ScheduledExecutorService)
.- Since:
- 10.0
- Author:
- Chris Povirk
-
Method Summary
Modifier and TypeMethodDescription<V extends @Nullable Object>
ListenableScheduledFuture<V> scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Method Details
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
schedule
<V extends @Nullable Object> ListenableScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) - Specified by:
schedule
in interfaceScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleAtFixedRate
ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleWithFixedDelay
ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-