Class VertxProducer

java.lang.Object
io.quarkus.vertx.runtime.VertxProducer

@ApplicationScoped public class VertxProducer extends Object
Expose the Vert.x event bus and produces Mutiny instances.

The original Vert.x instance is coming from the core artifact. IMPL NOTE: There is no need to cache the mutiny locally because the bean instances are stored in the singleton context, i.e. the producer method is only called once.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.eventbus.EventBus
    eventbus(io.vertx.core.Vertx vertx)
     
    io.vertx.mutiny.core.Vertx
    mutiny(io.vertx.core.Vertx vertx)
     
    io.vertx.mutiny.core.eventbus.EventBus
    mutinyEventBus(io.vertx.mutiny.core.Vertx mutiny)
     
    (package private) void
    undeployVerticles(Object event, jakarta.enterprise.inject.spi.BeanManager beanManager)
    Undeploy verticles backed by contextual instances of ApplicationScoped beans before the application context is destroyed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VertxProducer

      public VertxProducer()
  • Method Details

    • eventbus

      @Singleton @Produces public io.vertx.core.eventbus.EventBus eventbus(io.vertx.core.Vertx vertx)
    • mutiny

      @Singleton @Produces public io.vertx.mutiny.core.Vertx mutiny(io.vertx.core.Vertx vertx)
    • mutinyEventBus

      @Singleton @Produces public io.vertx.mutiny.core.eventbus.EventBus mutinyEventBus(io.vertx.mutiny.core.Vertx mutiny)
    • undeployVerticles

      void undeployVerticles(@Observes @BeforeDestroyed(jakarta.enterprise.context.ApplicationScoped.class) Object event, jakarta.enterprise.inject.spi.BeanManager beanManager)
      Undeploy verticles backed by contextual instances of ApplicationScoped beans before the application context is destroyed. Otherwise, Vertx may attempt to stop the verticles after the CDI container is shut down.
      Parameters:
      event -
      beanManager -