public class JCacheRegionFactory extends java.lang.Object implements RegionFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_URI |
static java.lang.String |
PROVIDER |
| Constructor and Description |
|---|
JCacheRegionFactory() |
| Modifier and Type | Method and Description |
|---|---|
CollectionRegion |
buildCollectionRegion(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing collection data.
|
EntityRegion |
buildEntityRegion(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing entity data.
|
NaturalIdRegion |
buildNaturalIdRegion(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
Build a cache region specialized for storing NaturalId to Primary Key mappings.
|
QueryResultsRegion |
buildQueryResultsRegion(java.lang.String regionName,
java.util.Properties properties)
Build a cache region specialized for storing query results.
|
TimestampsRegion |
buildTimestampsRegion(java.lang.String regionName,
java.util.Properties properties)
Build a cache region specialized for storing update-timestamps data.
|
protected void |
checkStatus() |
protected javax.cache.Cache<java.lang.Object,java.lang.Object> |
createCache(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata) |
protected javax.cache.CacheManager |
getCacheManager() |
protected javax.cache.CacheManager |
getCacheManager(java.util.Properties properties) |
protected javax.cache.spi.CachingProvider |
getCachingProvider(java.util.Properties properties) |
AccessType |
getDefaultAccessType()
Get the default access type for
entity and
collection regions. |
protected SessionFactoryOptions |
getOptions() |
protected javax.cache.Cache<java.lang.Object,java.lang.Object> |
getOrCreateCache(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata) |
protected java.lang.String |
getProp(java.util.Properties properties,
java.lang.String prop) |
boolean |
isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second
level cache implementation?
|
protected javax.cache.configuration.Configuration<java.lang.Object,java.lang.Object> |
newDefaultConfig(java.util.Properties properties,
CacheDataDescription metadata) |
long |
nextTimestamp()
Generate a timestamp.
|
void |
start(SessionFactoryOptions options,
java.util.Properties properties)
Lifecycle callback to perform any necessary initialization of the
underlying cache implementation(s).
|
void |
stop()
Lifecycle callback to perform any necessary cleanup of the underlying
cache implementation(s).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildCollectionRegion, buildEntityRegion, buildNaturalIdRegion, buildQueryResultsRegion, buildTimestampsRegion, startpublic static final java.lang.String PROVIDER
public static final java.lang.String CONFIG_URI
public void start(SessionFactoryOptions options, java.util.Properties properties) throws CacheException
RegionFactorySessionFactoryImpl.start in interface RegionFactoryoptions - 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(java.lang.String regionName, java.util.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 NaturalIdRegion buildNaturalIdRegion(java.lang.String regionName, java.util.Properties properties, CacheDataDescription metadata) throws CacheException
RegionFactorybuildNaturalIdRegion 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(java.lang.String regionName, java.util.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(java.lang.String regionName, java.util.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(java.lang.String regionName, java.util.Properties properties) throws CacheException
RegionFactorybuildTimestampsRegion in interface RegionFactoryregionName - The name of the region.properties - Configuration properties.CacheException - Indicates problems building the region.protected SessionFactoryOptions getOptions()
protected javax.cache.spi.CachingProvider getCachingProvider(java.util.Properties properties)
protected javax.cache.CacheManager getCacheManager(java.util.Properties properties)
protected javax.cache.Cache<java.lang.Object,java.lang.Object> getOrCreateCache(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
protected javax.cache.Cache<java.lang.Object,java.lang.Object> createCache(java.lang.String regionName,
java.util.Properties properties,
CacheDataDescription metadata)
protected javax.cache.configuration.Configuration<java.lang.Object,java.lang.Object> newDefaultConfig(java.util.Properties properties,
CacheDataDescription metadata)
protected javax.cache.CacheManager getCacheManager()
protected java.lang.String getProp(java.util.Properties properties,
java.lang.String prop)
protected void checkStatus()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.