Interface EventExecutorProvider
-
- All Superinterfaces:
VertxServiceProvider
@Unstable public interface EventExecutorProvider extends VertxServiceProvider
Event executor service provider interface.- Author:
- Julien Viet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Executor
eventExecutorFor(Thread thread)
Provide to vertx an executor for the giventhread
, that will execute context tasks.default void
init(io.vertx.core.internal.VertxBootstrap builder)
Let the provider initialize the Vert.x builder.
-
-
-
Method Detail
-
init
default void init(io.vertx.core.internal.VertxBootstrap builder)
Description copied from interface:VertxServiceProvider
Let the provider initialize the Vert.x builder.- Specified by:
init
in interfaceVertxServiceProvider
- Parameters:
builder
- the builder
-
eventExecutorFor
Executor eventExecutorFor(Thread thread)
Provide to vertx an executor for the giventhread
, that will execute context tasks.- Parameters:
thread
- the thread for which an executor is required- Returns:
- an executor suitable for the given thread, tasks executed on this executor will be declared as
running on
ThreadingModel.EXTERNAL
.
-
-