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:
  • Constructor Details

    • VertxContext

      public VertxContext()
  • Method Details

    • injectServices

      public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
      Specified by:
      injectServices in interface org.hibernate.service.spi.ServiceRegistryAwareService
    • put

      public <T> void put(Context.Key<T> key, T instance)
      Description copied from interface: Context
      Associate a value with the current reactive stream.
      Specified by:
      put in interface Context
    • get

      public <T> T get(Context.Key<T> key)
      Description copied from interface: Context
      Get a value associated with the current reactive stream, or return null.
      Specified by:
      get in interface Context
    • remove

      public void remove(Context.Key<?> key)
      Description copied from interface: Context
      Remove a value associated with the current reactive stream.
      Specified by:
      remove in interface Context
    • execute

      public void execute(Runnable runnable)
      Description copied from interface: Context
      Run 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.
      Specified by:
      execute in interface Context
      Specified by:
      execute in interface Executor