public class TenantAwareCacheKey extends CacheKey
Variation of CacheKey to be used when multi-tenancy is applied. The tenantId field was not simply added to the superclass because of performance considerations: CacheKey instances are have a very high allocation frequency and this field would enlarge the size by 50%.
| Constructor and Description |
|---|
TenantAwareCacheKey(Serializable id,
Type type,
String entityOrRoleName,
SessionFactoryImplementor factory,
String tenantId) |
public TenantAwareCacheKey(Serializable id, Type type, String entityOrRoleName, SessionFactoryImplementor factory, String tenantId)
public String getTenantId()
getTenantId in class CacheKeyCopyright © 2001-2014 Red Hat, Inc. All Rights Reserved.