Class DefaultVertxInstance
- java.lang.Object
-
- org.hibernate.reactive.vertx.impl.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 ofVertx
that is created on demand and destroyed automatically along with the Hibernatesession factory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultVertxInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Vertx
getVertx()
Obtain the instance ofVertx
.void
start()
void
stop()
-
-
-
Method Detail
-
getVertx
public io.vertx.core.Vertx getVertx()
Description copied from interface:VertxInstance
Obtain the instance ofVertx
.- Specified by:
getVertx
in interfaceVertxInstance
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-
start
public void start()
- Specified by:
start
in interfaceorg.hibernate.service.spi.Startable
-
-