Class WrappingScheduledExecutorService
java.lang.Object
com.google.common.util.concurrent.WrappingExecutorService
com.google.common.util.concurrent.WrappingScheduledExecutorService
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
,ScheduledExecutorService
abstract class WrappingScheduledExecutorService
extends WrappingExecutorService
implements ScheduledExecutorService
An abstract
ScheduledExecutorService
that allows subclasses to wrap tasks before they are submitted to the underlying executor.
Note that task wrapping may occur even if the task is never executed.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionfinal ScheduledFuture
<?> final <V> ScheduledFuture
<V> final ScheduledFuture
<?> scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) final ScheduledFuture
<?> scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from class com.google.common.util.concurrent.WrappingExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, wrapTask, wrapTask
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, close, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Field Details
-
delegate
-
-
Constructor Details
-
WrappingScheduledExecutorService
-
-
Method Details
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
public final ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public final ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-