Class VertxContext
java.lang.Object
org.hibernate.reactive.context.impl.VertxContext
- All Implemented Interfaces:
Serializable,Executor,Context,org.hibernate.service.Service,org.hibernate.service.spi.ServiceRegistryAwareService
public class VertxContext
extends Object
implements Context, org.hibernate.service.spi.ServiceRegistryAwareService
An adaptor for the Vert.x
Context.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.reactive.context.Context
Context.Key<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRun the given command in a context.<T> Tget(Context.Key<T> key) Get a value associated with the current reactive stream, or return null.voidinjectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) <T> voidput(Context.Key<T> key, T instance) Associate a value with the current reactive stream.voidremove(Context.Key<?> key) Remove a value associated with the current reactive stream.
-
Constructor Details
-
VertxContext
public VertxContext()
-
-
Method Details
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) - Specified by:
injectServicesin interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
put
Description copied from interface:ContextAssociate a value with the current reactive stream. -
get
Description copied from interface:ContextGet a value associated with the current reactive stream, or return null. -
remove
Description copied from interface:ContextRemove a value associated with the current reactive stream. -
execute
Description copied from interface:ContextRun the given command in a context. If there is a context already associated with the call, use that one. Otherwise, create a new context and execute the command in the new context. In case a new context is created, it will ensure a local context is created.
-