@FunctionalInterface public interface VertxInstance
DefaultSqlClientPool
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 org.hibernate.boot.registry.StandardServiceInitiator
or from code-based Hibernate configuration by calling ReactiveServiceRegistryBuilder.addService(java.lang.Class, Service)
.
new ReactiveServiceRegistryBuilder() .applySettings( properties ) .addService( VertxInstance.class, () -> myVertx ) .build();
ProvidedVertxInstance
Modifier and Type | Method and Description |
---|---|
Vertx | getVertx() Obtain the instance of Vertx . |