public interface RegionFactory extends Service, Stoppable
Properties
)start(org.hibernate.boot.spi.SessionFactoryOptions, java.util.Map)
being called.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME |
static String |
DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME |
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) |
default CacheTransactionSynchronization |
createTransactionContext(SharedSessionContractImplementor session) |
AccessType |
getDefaultAccessType()
Get the default access type for any "user model" data
|
default long |
getTimeout() |
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.
|
static final String DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME
static final String DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
void start(SessionFactoryOptions settings, Map configValues) throws CacheException
SessionFactoryImpl
.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.boolean isMinimalPutsEnabledByDefault()
AccessType getDefaultAccessType()
default CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
long nextTimestamp()
SharedSessionContractImplementor.getTransactionStartTimestamp()
value.
It is also expected that this be the value used for this's RegionFactory's
CacheTransactionContextdefault long getTimeout()
DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
regionConfig
- The user requested caching configuration for this RegionbuildingContext
- Access to delegates useful in building the RegionQueryResultsRegion buildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)
TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)
Copyright © 2019 JBoss by Red Hat. All rights reserved.