Interface ListeningScheduledExecutorService
- All Superinterfaces:
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> 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, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Method Details
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleAtFixedRate
ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleWithFixedDelay
ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-