Package io.smallrye.mutiny.vertx.core
Interface ContextAwareScheduler
public interface ContextAwareScheduler
Helpers for producing Vert.x
Context
-aware schedulers.
The schedulers ensure that actions run on a Vert.x Context
instead of the thread from the delegate
ScheduledExecutorService
.
The Context
are duplicated contexts.
The factory methods of ContextAwareScheduler.ContextCaptureStrategy
provide ScheduledExecutorService
objects with limited
capabilities.
The methods that use Runnable
tasks are supported, while those using Callable
are not.
These executors cannot be shut down.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Define how a scheduler captures a Vert.xContext
. -
Method Summary
Static MethodsModifier and TypeMethodDescriptiondelegatingTo
(ScheduledExecutorService delegate) Define a schedulerScheduledExecutorService
delegate.
-
Method Details
-
delegatingTo
@CheckReturnValue static ContextAwareScheduler.ContextCaptureStrategy delegatingTo(ScheduledExecutorService delegate) Define a schedulerScheduledExecutorService
delegate.- Parameters:
delegate
- the delegate- Returns:
- an object to define the context capture strategy definition
-