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.

@FunctionalInterface public interface VertxInstance extends org.hibernate.service.Service
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

    Modifier and Type
    Method
    Description
    io.vertx.core.Vertx
    Obtain the instance of Vertx.
  • Method Details

    • getVertx

      io.vertx.core.Vertx getVertx()
      Obtain the instance of Vertx.