com.google.common.util.concurrent
Interface ListeningScheduledExecutorService
- All Superinterfaces:
- java.util.concurrent.Executor, java.util.concurrent.ExecutorService, ListeningExecutorService, java.util.concurrent.ScheduledExecutorService
@Beta
public interface ListeningScheduledExecutorService
- extends java.util.concurrent.ScheduledExecutorService, ListeningExecutorService
A ScheduledExecutorService
that returns ListenableFuture
instances from its ExecutorService
methods. Futures returned by the
schedule*
methods, by contrast, need not implement ListenableFuture
. (To create an instance from an existing ScheduledExecutorService
, call MoreExecutors.listeningDecorator(ScheduledExecutorService)
.
TODO(cpovirk): make at least the one-time schedule() methods return a
ListenableFuture, too? But then we'll need ListenableScheduledFuture...
- Since:
- 10.0
Methods inherited from interface java.util.concurrent.ScheduledExecutorService |
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay |
Methods inherited from interface java.util.concurrent.ExecutorService |
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow |
Methods inherited from interface java.util.concurrent.Executor |
execute |