Package io.quarkus.runtime.util
Class ForwardingScheduledExecutorService
java.lang.Object
io.quarkus.runtime.util.ForwardingExecutorService
io.quarkus.runtime.util.ForwardingScheduledExecutorService
- All Implemented Interfaces:
Executor
,ExecutorService
,ScheduledExecutorService
- Direct Known Subclasses:
NoopShutdownScheduledExecutorService
public abstract class ForwardingScheduledExecutorService
extends ForwardingExecutorService
implements ScheduledExecutorService
Forwards all method calls to the scheduled executor service returned from the
delegate()
method. Only non-default
methods
declared on the ScheduledExecutorService
interface are forwarded.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ScheduledExecutorService
delegate()
<V> ScheduledFuture<V>
scheduleAtFixedRate
(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay
(Runnable command, long initialDelay, long delay, TimeUnit unit) Methods inherited from class io.quarkus.runtime.util.ForwardingExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
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, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Constructor Details
-
ForwardingScheduledExecutorService
public ForwardingScheduledExecutorService()
-
-
Method Details
-
delegate
- Specified by:
delegate
in classForwardingExecutorService
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
schedule
- Specified by:
schedule
in interfaceScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRate
in interfaceScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) - Specified by:
scheduleWithFixedDelay
in interfaceScheduledExecutorService
-