@Beta public interface ListeningScheduledExecutorService extends java.util.concurrent.ScheduledExecutorService, ListeningExecutorService
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...
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
invokeAll, invokeAll, submit, submit, submit