com.google.common.util.concurrent
Interface ListeningScheduledExecutorService
- All Superinterfaces:
- Executor, ExecutorService, ListeningExecutorService, ScheduledExecutorService
@Beta
public interface ListeningScheduledExecutorService
- extends 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
- Author:
- Chris Povirk
Copyright © 2010-2012. All Rights Reserved.