@Deprecated public class JBossCacheRegionFactory extends Object implements RegionFactory
RegionFactory that uses one or more JBoss Cache instances for
caching entities, collections, queries and timestamps. How the factory
obtains a reference to the needed JBoss Cache instance(s) is determined
by the injected CacheInstanceManager.
By default uses SharedCacheInstanceManager as its
CacheInstanceManager.
Basically, this uses a single shared JBoss Cache for entities, collections,
queries and timestamps. The JBoss Cache instance is created by the
JBC DefaultCacheFactory using the resource identified by the
JndiSharedCacheInstanceManager.CACHE_RESOURCE_PROP
configuration property.
Also exposes an overloaded constructor that allows injection of different
CacheInstanceManager implementations.
| Constructor and Description |
|---|
JBossCacheRegionFactory()
Deprecated.
Create a new JBossCacheRegionFactory.
|
JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager)
Deprecated.
Create a new JBossCacheRegionFactory that uses the provided
CacheInstanceManager. |
JBossCacheRegionFactory(Properties props)
Deprecated.
FIXME Per the RegionFactory class Javadoc, this constructor version
should not be necessary.
|
| Modifier and Type | Method and Description |
|---|---|
CollectionRegion |
buildCollectionRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Deprecated.
Build a cache region specialized for storing collection data.
|
EntityRegion |
buildEntityRegion(String regionName,
Properties properties,
CacheDataDescription metadata)
Deprecated.
Build a cache region specialized for storing entity data.
|
QueryResultsRegion |
buildQueryResultsRegion(String regionName,
Properties properties)
Deprecated.
Build a cache region specialized for storing query results
|
TimestampsRegion |
buildTimestampsRegion(String regionName,
Properties properties)
Deprecated.
Build a cache region specialized for storing update-timestamps data.
|
CacheInstanceManager |
getCacheInstanceManager()
Deprecated.
|
AccessType |
getDefaultAccessType()
Deprecated.
Get the default access type for
entity and
collection regions. |
static String |
getRegionPrefix(Properties properties)
Deprecated.
|
boolean |
isMinimalPutsEnabledByDefault()
Deprecated.
By default should we perform "minimal puts" when using this second
level cache implementation?
|
long |
nextTimestamp()
Deprecated.
Generate a timestamp.
|
void |
start(Settings settings,
Properties properties)
Deprecated.
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s).
|
void |
stop()
Deprecated.
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s).
|
public JBossCacheRegionFactory(Properties props)
props - The configuration propertiespublic JBossCacheRegionFactory()
public JBossCacheRegionFactory(CacheInstanceManager cacheInstanceManager)
CacheInstanceManager.cacheInstanceManager - The contract for how we get JBC cache instances.public CacheInstanceManager getCacheInstanceManager()
public void start(Settings settings, Properties properties) throws CacheException
RegionFactorySessionFactoryImpl.start in interface RegionFactorysettings - The settings in effect.properties - The defined cfg propertiesCacheException - Indicates problems starting the L2 cache impl;
considered as a sign to stop SessionFactory
building.public void stop()
RegionFactorySessionFactory.close().stop in interface RegionFactorypublic boolean isMinimalPutsEnabledByDefault()
RegionFactoryisMinimalPutsEnabledByDefault in interface RegionFactorypublic AccessType getDefaultAccessType()
RegionFactoryentity and
collection regions.getDefaultAccessType in interface RegionFactorypublic long nextTimestamp()
RegionFactorynextTimestamp in interface RegionFactorypublic EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException
RegionFactorybuildEntityRegion in interface RegionFactoryregionName - The name of the region.properties - Configuration properties.metadata - Information regarding the type of data to be cachedCacheException - Indicates problems building the region.public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException
RegionFactorybuildCollectionRegion in interface RegionFactoryregionName - The name of the region.properties - Configuration properties.metadata - Information regarding the type of data to be cachedCacheException - Indicates problems building the region.public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws CacheException
RegionFactorybuildQueryResultsRegion in interface RegionFactoryregionName - The name of the region.properties - Configuration properties.CacheException - Indicates problems building the region.public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws CacheException
RegionFactorybuildTimestampsRegion in interface RegionFactoryregionName - The name of the region.properties - Configuration properties.CacheException - Indicates problems building the region.public static String getRegionPrefix(Properties properties)
Copyright © 2002-2012 Red Hat Middleware, LLC. All Rights Reserved