接口 RegionFactory
-
- 所有超级接口:
Serializable,Service,Stoppable
- 所有已知子接口:
RegionFactory
public interface RegionFactory extends Service, Stoppable
Contract for building second level cache regions. Implementors should define a constructor in one of two forms:- MyRegionFactoryImpl(
Properties) - MyRegionFactoryImpl()
start(org.hibernate.boot.spi.SessionFactoryOptions, java.util.Map)being called.- 作者:
- Steve Ebersole
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAMEstatic StringDEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 DomainDataRegionbuildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)Create a named Region for holding domain model dataQueryResultsRegionbuildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)TimestampsRegionbuildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)default CacheTransactionSynchronizationcreateTransactionContext(SharedSessionContractImplementor session)AccessTypegetDefaultAccessType()Get the default access type for any "user model" datadefault longgetTimeout()booleanisMinimalPutsEnabledByDefault()By default should we perform "minimal puts" when using this second level cache implementation?longnextTimestamp()Generate a timestamp.Stringqualify(String regionName)voidstart(SessionFactoryOptions settings, Map configValues)Lifecycle callback to perform any necessary initialization of the underlying cache provider.
-
-
-
方法详细资料
-
start
void start(SessionFactoryOptions settings, Map configValues) throws CacheException
Lifecycle callback to perform any necessary initialization of the underlying cache provider. Called exactly once during the construction of aSessionFactoryImpl.- 参数:
settings- The settings in effect.configValues- The available config values- 抛出:
CacheException- Indicates problems starting the L2 cache impl; considered as a sign to stopSessionFactorybuilding.
-
isMinimalPutsEnabledByDefault
boolean isMinimalPutsEnabledByDefault()
By default should we perform "minimal puts" when using this second level cache implementation?- 返回:
- True if "minimal puts" should be performed by default; false otherwise.
-
getDefaultAccessType
AccessType getDefaultAccessType()
Get the default access type for any "user model" data
-
createTransactionContext
default CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
-
nextTimestamp
long nextTimestamp()
Generate a timestamp. This value is generally used for purpose of locking/unlocking cache content depending upon the access-strategy being used. The intended consumer of this method is the Session to manage itsSharedSessionContractImplementor.getTransactionStartTimestamp()value. It is also expected that this be the value used for this's RegionFactory's CacheTransactionContext
-
getTimeout
default long getTimeout()
-
buildDomainDataRegion
DomainDataRegion buildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext)
Create a named Region for holding domain model data- 参数:
regionConfig- The user requested caching configuration for this RegionbuildingContext- Access to delegates useful in building the Region
-
buildQueryResultsRegion
QueryResultsRegion buildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory)
-
buildTimestampsRegion
TimestampsRegion buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory)
-
-