Package io.quarkus.vertx.core.runtime
Class VertxTimerAwareScheduledExecutorService
java.lang.Object
io.quarkus.runtime.util.ForwardingExecutorService
io.quarkus.runtime.util.ForwardingScheduledExecutorService
io.quarkus.vertx.core.runtime.VertxTimerAwareScheduledExecutorService
- All Implemented Interfaces:
Executor,ExecutorService,ScheduledExecutorService
public final class VertxTimerAwareScheduledExecutorService
extends io.quarkus.runtime.util.ForwardingScheduledExecutorService
A wrapper for
ScheduledExecutorService that dispatches some of the operations using Vert.x timers
when called from Vert.x event-loops, else it just dispatches to a delegate ScheduledExecutorService.
This class is used to keep some Mutiny scheduled operations on a Vert.x event-loop thread rather than hop
to a worker thread: delaying items, retries on failures, streams of periodic ticks, etc.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ScheduledExecutorServicedelegate()scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) Methods inherited from class io.quarkus.runtime.util.ForwardingScheduledExecutorService
schedule, scheduleWithFixedDelayMethods inherited from class io.quarkus.runtime.util.ForwardingExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
Constructor Details
-
VertxTimerAwareScheduledExecutorService
-
-
Method Details
-
delegate
- Specified by:
delegatein classio.quarkus.runtime.util.ForwardingScheduledExecutorService
-
schedule
- Specified by:
schedulein interfaceScheduledExecutorService- Overrides:
schedulein classio.quarkus.runtime.util.ForwardingScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - Specified by:
scheduleAtFixedRatein interfaceScheduledExecutorService- Overrides:
scheduleAtFixedRatein classio.quarkus.runtime.util.ForwardingScheduledExecutorService
-