|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.hibernate.EhCacheRegionFactory
public class EhCacheRegionFactory
A non-singleton EhCacheRegionFactory implementation.
Field Summary | |
---|---|
protected EhcacheAccessStrategyFactory |
accessStrategyFactory
EhcacheAccessStrategyFactory for creating various access strategies |
protected CacheManager |
manager
Ehcache CacheManager that supplied Ehcache instances for this Hibernate RegionFactory. |
protected ProviderMBeanRegistrationHelper |
mbeanRegistrationHelper
MBean registration helper class instance for Ehcache Hibernate MBeans. |
static String |
NET_SF_EHCACHE_CACHE_MANAGER_NAME
The Hibernate system property specifying the name of the CacheManager being created. |
static String |
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
The Hibernate system property specifying the location of the ehcache configuration file name. |
protected Settings |
settings
Settings object for the Hibernate persistence unit. |
Constructor Summary | |
---|---|
EhCacheRegionFactory(Properties prop)
Creates a non-singleton EhCacheRegionFactory |
Method Summary | |
---|---|
CollectionRegion |
buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
|
EntityRegion |
buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
|
QueryResultsRegion |
buildQueryResultsRegion(String regionName,
Properties properties)
|
TimestampsRegion |
buildTimestampsRegion(String regionName,
Properties properties)
|
AccessType |
getDefaultAccessType()
Default access-type used when the configured using JPA 2.0 config. |
boolean |
isMinimalPutsEnabledByDefault()
Whether to optimize for minimals puts or minimal gets. |
protected static URL |
loadResource(String configurationResourceName)
Load a resource from the classpath. |
long |
nextTimestamp()
|
void |
start(Settings settings,
Properties properties)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
public static final String NET_SF_EHCACHE_CACHE_MANAGER_NAME
protected final ProviderMBeanRegistrationHelper mbeanRegistrationHelper
protected volatile CacheManager manager
protected Settings settings
protected final EhcacheAccessStrategyFactory accessStrategyFactory
EhcacheAccessStrategyFactory
for creating various access strategies
Constructor Detail |
---|
public EhCacheRegionFactory(Properties prop)
Method Detail |
---|
public void start(Settings settings, Properties properties) throws CacheException
CacheException
public void stop()
public boolean isMinimalPutsEnabledByDefault()
Indicates whether when operating in non-strict read/write or read-only mode Hibernate should optimize the access patterns for minimal puts or minimal gets. In Ehcache we default to minimal puts since this should have minimal to no affect on unclustered users, and has great benefit for clustered users.
This setting can be overridden by setting the "hibernate.cache.use_minimal_puts" property in the Hibernate configuration.
public long nextTimestamp()
public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException
CacheException
public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException
CacheException
public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws CacheException
CacheException
public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws CacheException
CacheException
protected static URL loadResource(String configurationResourceName)
public AccessType getDefaultAccessType()
@Cacheable(true)
to be attached to an
entity without any access type or usage qualification.
We are conservative here in specifying AccessType#READ_WRITE
so as to follow the mantra of "do no harm".
This is a Hibernate 3.5 method.
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |