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 java.lang.Object implements Context.Key<T>
Implementation ofContext.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 Summary
Constructors Constructor Description MultitenantKey(BaseKey<T> base, java.lang.String tenantId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-