@FunctionalInterface
public interface VertxInstance
extends org.hibernate.service.Service
DefaultSqlClientPool and
VertxContext
to obtain an instance of Vertx. The default instance is
DefaultVertxInstance.
A program may integrate a custom VertxInstance
with Hibernate Reactive by contributing a new service using a
StandardServiceInitiator
or from code-based Hibernate configuration by calling
ReactiveServiceRegistryBuilder.addService(java.lang.Class, org.hibernate.service.Service).
new ReactiveServiceRegistryBuilder()
.applySettings( properties )
.addService( VertxInstance.class, (VertxInstance) () -> myVertx )
.build();
ProvidedVertxInstance| Modifier and Type | Method and Description |
|---|---|
io.vertx.core.Vertx |
getVertx()
Obtain the instance of
Vertx. |