@FunctionalInterface public interface VertxInstance extends org.hibernate.service.Service
DefaultSqlClientPool
and
org.hibernate.reactive.context.impl.VertxContext
to obtain an instance of Vertx
. The default instance is
org.hibernate.reactive.vertx.impl.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();
org.hibernate.reactive.vertx.impl.ProvidedVertxInstance
Modifier and Type | Method and Description |
---|---|
io.vertx.core.Vertx |
getVertx()
Obtain the instance of
Vertx . |
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.