Package io.github.zero88.schedulerx
Interface WorkerExecutorFactory
@Internal
public interface WorkerExecutorFactory
A factory to create
WorkerExecutor
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull io.vertx.core.WorkerExecutor
createExecutionWorker
(@NotNull io.vertx.core.Vertx vertx, @NotNull TimeoutPolicy timeoutPolicy) Create a worker executor on which the scheduling execution operation runs.static @NotNull io.vertx.core.WorkerExecutor
createMonitorWorker
(@NotNull io.vertx.core.Vertx vertx) Create a worker executor on which the scheduling monitor operation runs.
-
Method Details
-
createExecutionWorker
@NotNull static @NotNull io.vertx.core.WorkerExecutor createExecutionWorker(@NotNull @NotNull io.vertx.core.Vertx vertx, @NotNull @NotNull TimeoutPolicy timeoutPolicy) Create a worker executor on which the scheduling execution operation runs. Note:- The thread-name prefix is retrieved from
DefaultOptions.executionThreadPrefix
- The thread pool size is retrieved from
DefaultOptions.executionThreadPoolSize
- Parameters:
vertx
- Vert.xtimeoutPolicy
- the timeout policy- Returns:
- new instance of worker executor
- The thread-name prefix is retrieved from
-
createMonitorWorker
@NotNull static @NotNull io.vertx.core.WorkerExecutor createMonitorWorker(@NotNull @NotNull io.vertx.core.Vertx vertx) Create a worker executor on which the scheduling monitor operation runs. Note:- The timeout is retrieved from
DefaultOptions.monitorMaxTimeout
- The thread-name prefix is retrieved from
DefaultOptions.monitorThreadPrefix
- The thread pool size is retrieved from
DefaultOptions.monitorThreadPoolSize
- Parameters:
vertx
- Vert.x- Returns:
- new instance of worker executor
- The timeout is retrieved from
-