Class RxHelper

java.lang.Object
io.vertx.rxjava3.core.RxHelper

public class RxHelper extends Object
Author:
Julien Viet
  • Constructor Details

    • RxHelper

      public RxHelper()
  • Method Details

    • blockingScheduler

      public static Scheduler blockingScheduler(WorkerExecutor executor)
      Create a scheduler for a WorkerExecutor object, actions are executed on the threads of this executor.
      Parameters:
      executor - the worker executor object
      Returns:
      the scheduler
    • blockingScheduler

      public 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.
      Parameters:
      vertx - the vertx object
      ordered - 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

      public static Single<String> deployVerticle(Vertx vertx, Verticle verticle)
      Deploy a verticle you have created yourself, using an RxJava vertx instance.
      Parameters:
      vertx - the vertx instance
      verticle - the verticle instance to deploy
      Returns:
      the response observable
    • deployVerticle

      public static Single<String> deployVerticle(Vertx vertx, Verticle verticle, DeploymentOptions options)
      Like deployVerticle(Vertx, Verticle), but DeploymentOptions are provided to configure the deployment.
      Parameters:
      vertx - the vertx instance
      verticle - the verticle instance to deploy
      options - the deployment options.
      Returns:
      the response observable
    • blockingScheduler

      public static Scheduler blockingScheduler(Vertx vertx)
      Create a scheduler for a Vertx object, actions can be blocking, they are not executed on Vertx event loop.
      Parameters:
      vertx - the vertx object
      Returns:
      the scheduler
    • scheduler

      public static Scheduler scheduler(Context context)
      Create a scheduler for a Context, actions are executed on the event loop of this context.
      Parameters:
      context - the context object
      Returns:
      the scheduler
    • scheduler

      public static Scheduler scheduler(Vertx vertx)
      Create a scheduler for a Vertx object, actions are executed on the event loop.
      Parameters:
      vertx - the vertx object
      Returns:
      the scheduler