org.hibernate.cache.jbc.entity
Class EntityRegionImpl

java.lang.Object
  extended by org.hibernate.cache.jbc.BasicRegionAdapter
      extended by org.hibernate.cache.jbc.TransactionalDataRegionAdapter
          extended by org.hibernate.cache.jbc.entity.EntityRegionImpl
All Implemented Interfaces:
EntityRegion, Region, TransactionalDataRegion

public class EntityRegionImpl
extends TransactionalDataRegionAdapter
implements EntityRegion

Defines the behavior of the entity cache regions for JBossCache.

Author:
Steve Ebersole

Field Summary
static String TYPE
           
 
Fields inherited from class org.hibernate.cache.jbc.TransactionalDataRegionAdapter
metadata
 
Fields inherited from class org.hibernate.cache.jbc.BasicRegionAdapter
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, regionFqn, regionName, regionRoot, regionRootMutex, replication, transactionManager
 
Constructor Summary
EntityRegionImpl(org.jboss.cache.Cache jbcCache, String regionName, String regionPrefix, CacheDataDescription metadata)
           
 
Method Summary
 EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType)
          Build an access strategy for the requested access type.
protected  org.jboss.cache.Fqn<String> createRegionFqn(String regionName, String regionPrefix)
           
 PutFromLoadValidator getPutFromLoadValidator()
           
 
Methods inherited from class org.hibernate.cache.jbc.TransactionalDataRegionAdapter
getCacheDataDescription, isTransactionAware
 
Methods inherited from class org.hibernate.cache.jbc.BasicRegionAdapter
activateLocalClusterNode, checkValid, contains, deactivateLocalNode, destroy, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getMemberId, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, handleEvictAllInvalidation, handleEvictAllModification, nextTimestamp, nodeInvalidated, nodeModified, resume, suspend, suspendAndGet, toMap, viewChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.cache.TransactionalDataRegion
getCacheDataDescription, isTransactionAware
 
Methods inherited from interface org.hibernate.cache.Region
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

EntityRegionImpl

public EntityRegionImpl(org.jboss.cache.Cache jbcCache,
                        String regionName,
                        String regionPrefix,
                        CacheDataDescription metadata)
Method Detail

buildAccessStrategy

public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType)
                                               throws CacheException
Build an access strategy for the requested access type.

Specified by:
buildAccessStrategy in interface EntityRegion
Parameters:
accessType - The type of access strategy to build; never null.
Returns:
The appropriate strategy contract for accessing this region for the requested type of access.
Throws:
CacheException - Usually indicates mis-configuration.

createRegionFqn

protected org.jboss.cache.Fqn<String> createRegionFqn(String regionName,
                                                      String regionPrefix)
Specified by:
createRegionFqn in class BasicRegionAdapter

getPutFromLoadValidator

public PutFromLoadValidator getPutFromLoadValidator()


Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.