public class NoCachingRegionFactory extends Object implements RegionFactory
| Modifier and Type | Field and Description |
|---|---|
static NoCachingRegionFactory |
INSTANCE
Singleton access
|
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME| Constructor and Description |
|---|
NoCachingRegionFactory()
Constructs a NoCachingRegionFactory.
|
| Modifier and Type | Method and Description |
|---|---|
DomainDataRegion |
buildDomainDataRegion(DomainDataRegionConfig regionConfig,
DomainDataRegionBuildingContext buildingContext)
Create a named Region for holding domain model data
|
QueryResultsRegion |
buildQueryResultsRegion(String regionName,
SessionFactoryImplementor sessionFactory) |
TimestampsRegion |
buildTimestampsRegion(String regionName,
SessionFactoryImplementor sessionFactory) |
CacheTransactionSynchronization |
createTransactionContext(SharedSessionContractImplementor session) |
AccessType |
getDefaultAccessType()
Get the default access type for any "user model" data
|
boolean |
isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second
level cache implementation?
|
long |
nextTimestamp()
Generate a timestamp.
|
String |
qualify(String regionName) |
void |
start(SessionFactoryOptions settings,
Map configValues)
Lifecycle callback to perform any necessary initialization of the
underlying cache provider.
|
void |
stop()
Stop phase notification
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTimeoutpublic static final NoCachingRegionFactory INSTANCE
public NoCachingRegionFactory()
INSTANCEpublic void start(SessionFactoryOptions settings, Map configValues) throws CacheException
RegionFactorySessionFactoryImpl.start in interface RegionFactorysettings - The settings in effect.configValues - The available config valuesCacheException - Indicates problems starting the L2 cache impl;
considered as a sign to stop SessionFactory
building.public void stop()
Stoppablepublic String qualify(String regionName)
qualify in interface RegionFactorypublic boolean isMinimalPutsEnabledByDefault()
RegionFactoryisMinimalPutsEnabledByDefault in interface RegionFactorypublic AccessType getDefaultAccessType()
RegionFactorygetDefaultAccessType in interface RegionFactorypublic long nextTimestamp()
RegionFactorySharedSessionContractImplementor.getTransactionStartTimestamp() value.
It is also expected that this be the value used for this's RegionFactory's
CacheTransactionContextnextTimestamp in interface RegionFactorypublic CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
createTransactionContext in interface RegionFactorypublic DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
RegionFactorybuildDomainDataRegion in interface RegionFactoryregionConfig - The user requested caching configuration for this RegionbuildingContext - Access to delegates useful in building the Regionpublic QueryResultsRegion buildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)
buildQueryResultsRegion in interface RegionFactorypublic TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)
buildTimestampsRegion in interface RegionFactoryCopyright © 2019 JBoss by Red Hat. All rights reserved.