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.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultVertxInstance
public DefaultVertxInstance()
-
-
Method Details
-
getVertx
public io.vertx.core.Vertx getVertx()Description copied from interface:VertxInstanceObtain the instance ofVertx.- Specified by:
getVertxin interfaceVertxInstance
-
stop
public void stop()- Specified by:
stopin interfaceorg.hibernate.service.spi.Stoppable
-
start
public void start()- Specified by:
startin interfaceorg.hibernate.service.spi.Startable
-