Interface ListeningScheduledExecutorService
- All Superinterfaces:
Executor,ExecutorService,ListeningExecutorService,ScheduledExecutorService
- All Known Implementing Classes:
MoreExecutors.ScheduledListeningDecorator,SameThreadScheduledExecutorService,TestingExecutors.NoOpScheduledExecutorService
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
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListenableScheduledFuture<?>Duration-based overload ofschedule(Runnable, long, TimeUnit).<V> ListenableScheduledFuture<V>default <V> ListenableScheduledFuture<V>Duration-based overload ofschedule(Callable, long, TimeUnit).scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) default ListenableScheduledFuture<?>scheduleAtFixedRate(Runnable command, Duration initialDelay, Duration period) Duration-based overload ofscheduleAtFixedRate(Runnable, long, long, TimeUnit).scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) default ListenableScheduledFuture<?>scheduleWithFixedDelay(Runnable command, Duration initialDelay, Duration delay) Duration-based overload ofscheduleWithFixedDelay(Runnable, long, long, TimeUnit).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
Duration-based overload ofschedule(Runnable, long, TimeUnit).- Since:
- 29.0
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
schedule
Duration-based overload ofschedule(Callable, long, TimeUnit).- Since:
- 29.0
-
scheduleAtFixedRate
ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleAtFixedRate
default ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, Duration initialDelay, Duration period) Duration-based overload ofscheduleAtFixedRate(Runnable, long, long, TimeUnit).- Since:
- 29.0
-
scheduleWithFixedDelay
ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelayin interfaceScheduledExecutorService- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleWithFixedDelay
default ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, Duration initialDelay, Duration delay) Duration-based overload ofscheduleWithFixedDelay(Runnable, long, long, TimeUnit).- Since:
- 29.0
-