Package io.smallrye.mutiny.vertx.core
Interface ContextAwareScheduler
-
public interface ContextAwareScheduler
Helpers for producing Vert.xContext
-aware schedulers.The schedulers ensure that actions run on a Vert.x
Context
instead of the thread from the delegateScheduledExecutorService
. TheContext
are duplicated contexts.The factory methods of
ContextAwareScheduler.ContextCaptureStrategy
provideScheduledExecutorService
objects with limited capabilities. The methods that useRunnable
tasks are supported, while those usingCallable
are not. These executors cannot be shut down.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ContextAwareScheduler.ContextCaptureStrategy
Define how a scheduler captures a Vert.xContext
.
-
Method Summary
Static Methods Modifier and Type Method Description static ContextAwareScheduler.ContextCaptureStrategy
delegatingTo(ScheduledExecutorService delegate)
Define a schedulerScheduledExecutorService
delegate.
-
-
-
Method Detail
-
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
-
-