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 class
MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V>
private static class
MoreExecutors.ScheduledListeningDecorator.NeverSuccessfulListenableFutureTask
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.ScheduledExecutorService
delegate
-
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:
schedule
in interfaceListeningScheduledExecutorService
- Specified by:
schedule
in 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:
schedule
in interfaceListeningScheduledExecutorService
- Specified by:
schedule
in interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleAtFixedRate
public ListenableScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleAtFixedRate
in interfaceListeningScheduledExecutorService
- Specified by:
scheduleAtFixedRate
in interfacejava.util.concurrent.ScheduledExecutorService
-
scheduleWithFixedDelay
public ListenableScheduledFuture<?> scheduleWithFixedDelay(java.lang.Runnable command, long initialDelay, long delay, java.util.concurrent.TimeUnit unit)
- Specified by:
scheduleWithFixedDelay
in interfaceListeningScheduledExecutorService
- Specified by:
scheduleWithFixedDelay
in interfacejava.util.concurrent.ScheduledExecutorService
-
-