Interface VertxInstance

  • All Superinterfaces:
    Serializable, Service
    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 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:
    ProvidedVertxInstance
    • Method Detail

      • getVertx

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