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
,AutoCloseable
,Executor
,ExecutorService
,ScheduledExecutorService
- Enclosing class:
MoreExecutors
private static final class MoreExecutors.ScheduledListeningDecorator
extends MoreExecutors.ListeningDecorator
implements ListeningScheduledExecutorService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> ListenableScheduledFuture
<V> scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from class com.google.common.util.concurrent.MoreExecutors.ListeningDecorator
awaitTermination, execute, isShutdown, isTerminated, shutdown, shutdownNow, toString
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, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
Methods inherited from interface com.google.common.util.concurrent.ListeningExecutorService
awaitTermination, invokeAll, invokeAll, invokeAll, invokeAny, submit, submit, submit
Methods inherited from interface com.google.common.util.concurrent.ListeningScheduledExecutorService
schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay
-
Field Details
-
delegate
-
-
Constructor Details
-
ScheduledListeningDecorator
ScheduledListeningDecorator(ScheduledExecutorService delegate)
-
-
Method Details
-
schedule
- Specified by:
schedule
in interfaceListeningScheduledExecutorService
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
- Specified by:
schedule
in interfaceListeningScheduledExecutorService
- Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ListenableScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceListeningScheduledExecutorService
- Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ListenableScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceListeningScheduledExecutorService
- Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-