Package org.hibernate.reactive.vertx
Interface VertxInstance
- All Superinterfaces:
Serializable
,org.hibernate.service.Service
- All Known Implementing Classes:
DefaultVertxInstance
,ProvidedVertxInstance
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Used by
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
StandardServiceRegistryBuilder.addService(java.lang.Class<T>, T)
.
new ReactiveServiceRegistryBuilder()
.applySettings( properties )
.addService( VertxInstance.class, (VertxInstance) () -> myVertx )
.build();
- See Also:
-
Method Summary
-
Method Details
-
getVertx
io.vertx.core.Vertx getVertx()Obtain the instance ofVertx
.
-