public abstract class WrappingScheduledExecutorService extends WrappingExecutorService implements FluentScheduledExecutorService
Modifier | Constructor and Description |
---|---|
protected |
WrappingScheduledExecutorService(ScheduledExecutorService delegate)
Constructs a new scheduled executor service that delegates to the given scheduled executor
service.
|
Modifier and Type | Method and Description |
---|---|
protected FluentScheduledExecutorService |
delegate()
Returns the underlying executor service.
|
<V> FluentScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
FluentScheduledFuture<Void> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
FluentRepeatingFuture<Void> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
FluentRepeatingFuture<Void> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit, wrap, wrap, wrap
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokeAll, invokeAll, makeFluent, makeFluent, makeFluentScheduled, makeFluentScheduled, sameThreadExecutorService, submit, submit, submit
awaitTermination, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
protected WrappingScheduledExecutorService(ScheduledExecutorService delegate)
delegate
- a scheduled executor serviceprotected FluentScheduledExecutorService delegate()
delegate
in class WrappingExecutorService
public FluentScheduledFuture<Void> schedule(Runnable command, long delay, TimeUnit unit)
FluentScheduledExecutorService
Overrides the return type to be fluent.
schedule
in interface FluentScheduledExecutorService
schedule
in interface com.google.common.util.concurrent.ListeningScheduledExecutorService
schedule
in interface ScheduledExecutorService
public <V> FluentScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
FluentScheduledExecutorService
Overrides the return type to be fluent.
schedule
in interface FluentScheduledExecutorService
schedule
in interface com.google.common.util.concurrent.ListeningScheduledExecutorService
schedule
in interface ScheduledExecutorService
public FluentRepeatingFuture<Void> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
FluentScheduledExecutorService
Overrides the return type to be fluent.
scheduleAtFixedRate
in interface FluentScheduledExecutorService
scheduleAtFixedRate
in interface com.google.common.util.concurrent.ListeningScheduledExecutorService
scheduleAtFixedRate
in interface ScheduledExecutorService
public FluentRepeatingFuture<Void> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
FluentScheduledExecutorService
Overrides the return type to be fluent.
scheduleWithFixedDelay
in interface FluentScheduledExecutorService
scheduleWithFixedDelay
in interface com.google.common.util.concurrent.ListeningScheduledExecutorService
scheduleWithFixedDelay
in interface ScheduledExecutorService