Class RegionFactoryTemplate
java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
- All Implemented Interfaces:
Serializable, RegionFactory, Service, Stoppable
- See Also:
-
Field Summary
Fields inherited from class AbstractRegionFactory
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMESFields inherited from interface RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDomainDataRegion(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) Create a namedRegionfor holding domain model databuildQueryResultsRegion(String regionName, SessionFactoryImplementor sessionFactory) Create a namedRegionfor holding query result sets.buildTimestampsRegion(String regionName, SessionFactoryImplementor sessionFactory) Create a namedRegionfor holding timestamps used to determine when a cached query result set is stale.protected DomainDataStorageAccesscreateDomainDataStorageAccess(DomainDataRegionConfig regionConfig, DomainDataRegionBuildingContext buildingContext) protected abstract StorageAccesscreateQueryResultsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory) protected abstract StorageAccesscreateTimestampsRegionStorageAccess(String regionName, SessionFactoryImplementor sessionFactory) protected CacheKeysFactoryMethods inherited from class AbstractRegionFactory
getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, isStarted, nextTimestamp, prepareForUse, qualify, releaseFromUse, start, stop, verifiedStartStatus, verifyStartedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RegionFactory
createTransactionContext
-
Constructor Details
-
RegionFactoryTemplate
public RegionFactoryTemplate()
-
-
Method Details
-
buildDomainDataRegion
@Nonnull public DomainDataRegion buildDomainDataRegion(@Nonnull DomainDataRegionConfig regionConfig, @Nonnull DomainDataRegionBuildingContext buildingContext) Description copied from interface:RegionFactoryCreate a namedRegionfor holding domain model data- Parameters:
regionConfig- The user requested caching configuration for this RegionbuildingContext- Access to delegates useful in building the Region
-
getImplicitCacheKeysFactory
-
createDomainDataStorageAccess
@Nonnull protected DomainDataStorageAccess createDomainDataStorageAccess(@Nonnull DomainDataRegionConfig regionConfig, @Nonnull DomainDataRegionBuildingContext buildingContext) -
buildQueryResultsRegion
@Nonnull public QueryResultsRegion buildQueryResultsRegion(@Nonnull String regionName, @Nonnull SessionFactoryImplementor sessionFactory) Description copied from interface:RegionFactoryCreate a namedRegionfor holding query result sets. -
createQueryResultsRegionStorageAccess
@Nonnull protected abstract StorageAccess createQueryResultsRegionStorageAccess(@Nonnull String regionName, @Nonnull SessionFactoryImplementor sessionFactory) -
buildTimestampsRegion
@Nonnull public TimestampsRegion buildTimestampsRegion(@Nonnull String regionName, @Nonnull SessionFactoryImplementor sessionFactory) Description copied from interface:RegionFactoryCreate a namedRegionfor holding timestamps used to determine when a cached query result set is stale. -
createTimestampsRegionStorageAccess
@Nonnull protected abstract StorageAccess createTimestampsRegionStorageAccess(@Nonnull String regionName, @Nonnull SessionFactoryImplementor sessionFactory)
-