Class DefaultVertxInstance

java.lang.Object
org.hibernate.reactive.vertx.impl.DefaultVertxInstance
All Implemented Interfaces:
Serializable, VertxInstance, org.hibernate.service.Service, org.hibernate.service.spi.Startable, org.hibernate.service.spi.Stoppable

public final class DefaultVertxInstance extends Object implements VertxInstance, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Startable
A singleton instance of Vertx that is created on demand and destroyed automatically along with the Hibernate session factory.
See Also:
  • Constructor Details

    • DefaultVertxInstance

      public DefaultVertxInstance()
  • Method Details

    • getVertx

      public io.vertx.core.Vertx getVertx()
      Description copied from interface: VertxInstance
      Obtain the instance of Vertx.
      Specified by:
      getVertx in interface VertxInstance
    • stop

      public void stop()
      Specified by:
      stop in interface org.hibernate.service.spi.Stoppable
    • start

      public void start()
      Specified by:
      start in interface org.hibernate.service.spi.Startable