Class MultitenantKey<T>

java.lang.Object
org.hibernate.reactive.context.impl.MultitenantKey<T>
Type Parameters:
T - the type of object being stored in the Context.
All Implemented Interfaces:
Context.Key<T>

public final class MultitenantKey<T> extends Object implements Context.Key<T>
Implementation of Context.Key suitable for use with multi-tenancy. In a multi-tenant environment, anything we store in the Vert.x context is keyed not only by its type, but also by the tenant id.

An instance of this class wraps a BaseKey of the same type, allowing instance reuse for efficiency.

  • Constructor Details

    • MultitenantKey

      public MultitenantKey(BaseKey<T> base, String tenantId)
  • Method Details