@Beta public interface ListeningScheduledExecutorService extends 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
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
Copyright © 2010-2013. All Rights Reserved.