Package io.quarkus.vertx.runtime
Class VertxProducer
java.lang.Object
io.quarkus.vertx.runtime.VertxProducer
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 -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.eventbus.EventBuseventbus(io.vertx.core.Vertx vertx) io.vertx.mutiny.core.Vertxmutiny(io.vertx.core.Vertx vertx) io.vertx.mutiny.core.eventbus.EventBusmutinyEventBus(io.vertx.mutiny.core.Vertx mutiny) (package private) voidundeployVerticles(Object event, jakarta.enterprise.inject.spi.BeanManager beanManager) Undeploy verticles backed by contextual instances ofApplicationScopedbeans before the application context is destroyed.
-
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 ofApplicationScopedbeans before the application context is destroyed. Otherwise, Vertx may attempt to stop the verticles after the CDI container is shut down.- Parameters:
event-beanManager-
-