public class RxHelper extends Object
Constructor and Description |
---|
RxHelper() |
Modifier and Type | Method and Description |
---|---|
static Scheduler |
blockingScheduler(Vertx vertx)
Create a scheduler for a
Vertx object, actions can be blocking, they are not executed
on Vertx event loop. |
static Scheduler |
blockingScheduler(Vertx vertx,
boolean ordered)
Create a scheduler for a
Vertx object, actions can be blocking, they are not executed
on Vertx event loop. |
static Scheduler |
blockingScheduler(WorkerExecutor executor)
Create a scheduler for a
WorkerExecutor object, actions are executed on the threads of this executor. |
static Single<String> |
deployVerticle(Vertx vertx,
Verticle verticle)
Deploy a verticle you have created yourself, using an
RxJava vertx instance.
|
static Single<String> |
deployVerticle(Vertx vertx,
Verticle verticle,
DeploymentOptions options)
Like
deployVerticle(Vertx, Verticle) , but DeploymentOptions are provided to configure the
deployment. |
static Scheduler |
scheduler(Context context)
Create a scheduler for a
Context , actions are executed on the event loop of this context. |
static Scheduler |
scheduler(Vertx vertx)
Create a scheduler for a
Vertx object, actions are executed on the event loop. |
public static Scheduler blockingScheduler(WorkerExecutor executor)
WorkerExecutor
object, actions are executed on the threads of this executor.executor
- the worker executor objectpublic static Scheduler blockingScheduler(Vertx vertx, boolean ordered)
Vertx
object, actions can be blocking, they are not executed
on Vertx event loop.vertx
- the vertx objectordered
- if true then if when tasks are scheduled several times on the same context, the executions
for that context will be executed serially, not in parallel. if false then they will be no ordering
guaranteespublic static Single<String> deployVerticle(Vertx vertx, Verticle verticle)
vertx
- the vertx instanceverticle
- the verticle instance to deploypublic static Single<String> deployVerticle(Vertx vertx, Verticle verticle, DeploymentOptions options)
deployVerticle(Vertx, Verticle)
, but DeploymentOptions
are provided to configure the
deployment.vertx
- the vertx instanceverticle
- the verticle instance to deployoptions
- the deployment options.public static Scheduler blockingScheduler(Vertx vertx)
Vertx
object, actions can be blocking, they are not executed
on Vertx event loop.vertx
- the vertx objectpublic static Scheduler scheduler(Context context)
Context
, actions are executed on the event loop of this context.context
- the context objectCopyright © 2024 Eclipse. All rights reserved.