EK - the entity cache key typeAK - the association cache key typeISK - the identity source cache key typepublic abstract class LocalCacheManager<EK,AK,ISK> extends Object
Implementations need to make sure all needed caches are started before state transfer happens. This prevents this node to return undefined cache errors during replication when other nodes join this one.
Implementations must be thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalCacheManager.Bucket<EK>
Describe all the entity key meta-data that work on a given cache
|
| Modifier | Constructor and Description |
|---|---|
protected |
LocalCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager) |
protected |
LocalCacheManager(URL configUrl,
org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform platform,
Set<String> cacheNames,
KeyProvider<EK,AK,ISK> keyProvider) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.infinispan.Cache<AK,Map<RowKey,Map<String,Object>>> |
getAssociationCache(AssociationKeyMetadata keyMetadata) |
protected org.infinispan.manager.EmbeddedCacheManager |
getCacheManager() |
abstract org.infinispan.Cache<EK,Map<String,Object>> |
getEntityCache(EntityKeyMetadata keyMetadata) |
abstract org.infinispan.Cache<ISK,Object> |
getIdSourceCache(IdSourceKeyMetadata keyMetadata) |
abstract Set<LocalCacheManager.Bucket<EK>> |
getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
Groups the given entity types by the caches they are stored in.
|
void |
stop() |
protected LocalCacheManager(org.infinispan.manager.EmbeddedCacheManager cacheManager)
protected org.infinispan.manager.EmbeddedCacheManager getCacheManager()
public void stop()
public abstract org.infinispan.Cache<EK,Map<String,Object>> getEntityCache(EntityKeyMetadata keyMetadata)
public abstract org.infinispan.Cache<AK,Map<RowKey,Map<String,Object>>> getAssociationCache(AssociationKeyMetadata keyMetadata)
public abstract org.infinispan.Cache<ISK,Object> getIdSourceCache(IdSourceKeyMetadata keyMetadata)
public abstract Set<LocalCacheManager.Bucket<EK>> getWorkBucketsFor(EntityKeyMetadata... entityKeyMetadatas)
entityKeyMetadatas - the meta-data of the entitiesLocalCacheManager.Buckets containg the entities corressponding to the entity key meta-datasCopyright © 2010–2017 Hibernate. All rights reserved.