Package org.hibernate.reactive.vertx
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 byDefaultSqlClientPool
andVertxContext
to obtain an instance ofVertx
. The default instance isDefaultVertxInstance
.A program may integrate a custom
VertxInstance
with Hibernate Reactive by contributing a new service using aStandardServiceInitiator
or from code-based Hibernate configuration by callingStandardServiceRegistryBuilder.addService(java.lang.Class<T>, T)
.new ReactiveServiceRegistryBuilder() .applySettings( properties ) .addService( VertxInstance.class, (VertxInstance) () -> myVertx ) .build();
- See Also:
ProvidedVertxInstance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.vertx.core.Vertx
getVertx()
Obtain the instance ofVertx
.
-