Class RxHelper
java.lang.Object
io.vertx.reactivex.core.RxHelper
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulerblockingScheduler(Vertx vertx) Create a scheduler for aVertxobject, actions can be blocking, they are not executed on Vertx event loop.static SchedulerblockingScheduler(Vertx vertx, boolean ordered) Create a scheduler for aVertxobject, actions can be blocking, they are not executed on Vertx event loop.static SchedulerblockingScheduler(WorkerExecutor executor) Create a scheduler for aWorkerExecutorobject, actions are executed on the threads of this executor.deployVerticle(Vertx vertx, Verticle verticle) Deploy a verticle you have created yourself, using an RxJava vertx instance.deployVerticle(Vertx vertx, Verticle verticle, DeploymentOptions options) LikedeployVerticle(Vertx, Verticle), butDeploymentOptionsare provided to configure the deployment.static SchedulerCreate a scheduler for aContext, actions are executed on the event loop of this context.static SchedulerCreate a scheduler for aVertxobject, actions are executed on the event loop.
-
Constructor Details
-
RxHelper
public RxHelper()
-
-
Method Details
-
blockingScheduler
Create a scheduler for aWorkerExecutorobject, actions are executed on the threads of this executor.- Parameters:
executor- the worker executor object- Returns:
- the scheduler
-
blockingScheduler
Create a scheduler for aVertxobject, actions can be blocking, they are not executed on Vertx event loop.- Parameters:
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 guarantees- Returns:
- the scheduler
-
deployVerticle
-
deployVerticle
public static Single<String> deployVerticle(Vertx vertx, Verticle verticle, DeploymentOptions options) LikedeployVerticle(Vertx, Verticle), butDeploymentOptionsare provided to configure the deployment.- Parameters:
vertx- the vertx instanceverticle- the verticle instance to deployoptions- the deployment options.- Returns:
- the response observable
-
blockingScheduler
-
scheduler
-
scheduler
-