Interface ListeningScheduledExecutorService
-
- All Superinterfaces:
java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
,ListeningExecutorService
,java.util.concurrent.ScheduledExecutorService
@GwtIncompatible public interface ListeningScheduledExecutorService extends java.util.concurrent.ScheduledExecutorService, ListeningExecutorService
AScheduledExecutorService
that returnsListenableFuture
instances from itsExecutorService
methods. To create an instance from an existingScheduledExecutorService
, callMoreExecutors.listeningDecorator(ScheduledExecutorService)
.- Since:
- 10.0
- Author:
- Chris Povirk
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListenableScheduledFuture<?>
schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
<V extends @Nullable java.lang.Object>
ListenableScheduledFuture<V>schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
ListenableScheduledFuture<?>
scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
ListenableScheduledFuture<?>
scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
-
-
-
Method Detail
-
schedule
ListenableScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interfacejava.util.concurrent.ScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
schedule
<V extends @Nullable java.lang.Object> ListenableScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedule
in interfacejava.util.concurrent.ScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleAtFixedRate
ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRate
in interfacejava.util.concurrent.ScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
scheduleWithFixedDelay
ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelay
in interfacejava.util.concurrent.ScheduledExecutorService
- Since:
- 15.0 (previously returned ScheduledFuture)
-
-