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, wait
getTimeout
public static final NoCachingRegionFactory INSTANCE
public NoCachingRegionFactory()
INSTANCE
public void start(SessionFactoryOptions settings, Map configValues) throws CacheException
RegionFactory
SessionFactoryImpl
.start
in interface RegionFactory
settings
- 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()
Stoppable
public String qualify(String regionName)
qualify
in interface RegionFactory
public boolean isMinimalPutsEnabledByDefault()
RegionFactory
isMinimalPutsEnabledByDefault
in interface RegionFactory
public AccessType getDefaultAccessType()
RegionFactory
getDefaultAccessType
in interface RegionFactory
public long nextTimestamp()
RegionFactory
SharedSessionContractImplementor.getTransactionStartTimestamp()
value.
It is also expected that this be the value used for this's RegionFactory's
CacheTransactionContextnextTimestamp
in interface RegionFactory
public CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
createTransactionContext
in interface RegionFactory
public DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
RegionFactory
buildDomainDataRegion
in interface RegionFactory
regionConfig
- 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 RegionFactory
public TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)
buildTimestampsRegion
in interface RegionFactory
Copyright © 2019 JBoss by Red Hat. All rights reserved.