类 AbstractRegionFactory
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractRegionFactory
-
- 所有已实现的接口:
Serializable,RegionFactory,Service,Stoppable
- 直接已知子类:
RegionFactoryTemplate
public abstract class AbstractRegionFactory extends Object implements RegionFactory
- 作者:
- Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static List<String>LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMESLegacy names that used to be the default for the query results region.static List<String>LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMESLegacy names that used to be the default for the update timestamps region.-
从接口继承的字段 org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
-
-
构造器概要
构造器 构造器 说明 AbstractRegionFactory()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 CacheTransactionSynchronizationcreateTransactionContext(SharedSessionContractImplementor session)AccessTypegetDefaultAccessType()Get the default access type for any "user model" dataprotected SessionFactoryOptionsgetOptions()longgetTimeout()booleanisMinimalPutsEnabledByDefault()By default should we perform "minimal puts" when using this second level cache implementation?protected booleanisStarted()longnextTimestamp()Generate a timestamp.protected abstract voidprepareForUse(SessionFactoryOptions settings, Map configValues)Stringqualify(String regionName)protected abstract voidreleaseFromUse()voidstart(SessionFactoryOptions settings, Map configValues)Lifecycle callback to perform any necessary initialization of the underlying cache provider.voidstop()Stop phase notificationprotected booleanverifiedStartStatus()protected voidverifyStarted()-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.cache.spi.RegionFactory
buildDomainDataRegion, buildQueryResultsRegion, buildTimestampsRegion
-
-
-
-
方法详细资料
-
isStarted
protected boolean isStarted()
-
verifyStarted
protected void verifyStarted()
-
verifiedStartStatus
protected boolean verifiedStartStatus()
-
getOptions
protected SessionFactoryOptions getOptions()
-
start
public final void start(SessionFactoryOptions settings, Map configValues) throws CacheException
从接口复制的说明:RegionFactoryLifecycle callback to perform any necessary initialization of the underlying cache provider. Called exactly once during the construction of aSessionFactoryImpl.- 指定者:
start在接口中RegionFactory- 参数:
settings- The settings in effect.configValues- The available config values- 抛出:
CacheException- Indicates problems starting the L2 cache impl; considered as a sign to stopSessionFactorybuilding.
-
prepareForUse
protected abstract void prepareForUse(SessionFactoryOptions settings, Map configValues)
-
releaseFromUse
protected abstract void releaseFromUse()
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
从接口复制的说明:RegionFactoryBy default should we perform "minimal puts" when using this second level cache implementation?- 指定者:
isMinimalPutsEnabledByDefault在接口中RegionFactory- 返回:
- True if "minimal puts" should be performed by default; false otherwise.
-
getDefaultAccessType
public AccessType getDefaultAccessType()
从接口复制的说明:RegionFactoryGet the default access type for any "user model" data- 指定者:
getDefaultAccessType在接口中RegionFactory
-
qualify
public String qualify(String regionName)
- 指定者:
qualify在接口中RegionFactory
-
createTransactionContext
public CacheTransactionSynchronization createTransactionContext(SharedSessionContractImplementor session)
- 指定者:
createTransactionContext在接口中RegionFactory
-
nextTimestamp
public long nextTimestamp()
从接口复制的说明:RegionFactoryGenerate 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- 指定者:
nextTimestamp在接口中RegionFactory
-
getTimeout
public long getTimeout()
- 指定者:
getTimeout在接口中RegionFactory
-
-