Package io.smallrye.mutiny.vertx.core
Interface ContextAwareScheduler
-
public interface ContextAwareSchedulerHelpers for producing Vert.xContext-aware schedulers.The schedulers ensure that actions run on a Vert.x
Contextinstead of the thread from the delegateScheduledExecutorService. TheContextare duplicated contexts.The factory methods of
ContextAwareScheduler.ContextCaptureStrategyprovideScheduledExecutorServiceobjects with limited capabilities. The methods that useRunnabletasks are supported, while those usingCallableare not. These executors cannot be shut down.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContextAwareScheduler.ContextCaptureStrategyDefine how a scheduler captures a Vert.xContext.
-
Method Summary
Static Methods Modifier and Type Method Description static ContextAwareScheduler.ContextCaptureStrategydelegatingTo(ScheduledExecutorService delegate)Define a schedulerScheduledExecutorServicedelegate.
-
-
-
Method Detail
-
delegatingTo
@CheckReturnValue static ContextAwareScheduler.ContextCaptureStrategy delegatingTo(ScheduledExecutorService delegate)
Define a schedulerScheduledExecutorServicedelegate.- Parameters:
delegate- the delegate- Returns:
- an object to define the context capture strategy definition
-
-