Class MoreExecutors.ScheduledListeningDecorator
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- com.google.common.util.concurrent.AbstractListeningExecutorService
-
- com.google.common.util.concurrent.MoreExecutors.ListeningDecorator
-
- com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator
-
- All Implemented Interfaces:
ListeningExecutorService,ListeningScheduledExecutorService,java.util.concurrent.Executor,java.util.concurrent.ExecutorService,java.util.concurrent.ScheduledExecutorService
- Enclosing class:
- MoreExecutors
@GwtIncompatible private static final class MoreExecutors.ScheduledListeningDecorator extends MoreExecutors.ListeningDecorator implements ListeningScheduledExecutorService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V>private static classMoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.ScheduledExecutorServicedelegate
-
Constructor Summary
Constructors Constructor Description ScheduledListeningDecorator(java.util.concurrent.ScheduledExecutorService delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenableScheduledFuture<?>schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)<V> 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)-
Methods inherited from class com.google.common.util.concurrent.MoreExecutors.ListeningDecorator
awaitTermination, execute, isShutdown, isTerminated, shutdown, shutdownNow
-
Methods inherited from class com.google.common.util.concurrent.AbstractListeningExecutorService
newTaskFor, newTaskFor, submit, submit, submit
-
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
schedule
public ListenableScheduledFuture<?> schedule(java.lang.Runnable command, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedulein interfaceListeningScheduledExecutorService- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
schedule
public <V> ListenableScheduledFuture<V> schedule(java.util.concurrent.Callable<V> callable, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
schedulein interfaceListeningScheduledExecutorService- Specified by:
schedulein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleAtFixedRate
public ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRatein interfaceListeningScheduledExecutorService- Specified by:
scheduleAtFixedRatein interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleWithFixedDelay
public ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelayin interfaceListeningScheduledExecutorService- Specified by:
scheduleWithFixedDelayin interfacejava.util.concurrent.ScheduledExecutorService
-
-