Class DefaultVertxInstance

  • All Implemented Interfaces:
    java.io.Serializable, VertxInstance, org.hibernate.service.Service, org.hibernate.service.spi.Startable, org.hibernate.service.spi.Stoppable

    public final class DefaultVertxInstance
    extends java.lang.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:
    if you need to a different instance, Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.vertx.core.Vertx getVertx()
      Obtain the instance of Vertx.
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultVertxInstance

        public DefaultVertxInstance()
    • Method Detail

      • 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