Module com.hazelcast.hibernate53
Package com.hazelcast.hibernate
Class HazelcastLocalCacheRegionFactory
java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
com.hazelcast.hibernate.HazelcastLocalCacheRegionFactory
- All Implemented Interfaces:
Serializable,org.hibernate.cache.spi.RegionFactory,org.hibernate.service.Service,org.hibernate.service.spi.Stoppable
Simple RegionFactory implementation to return Hazelcast based local Region implementations
- See Also:
-
Field Summary
Fields inherited from class com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
freeHeapBasedCacheEvictor, instance, localRegionCachesFields inherited from class org.hibernate.cache.spi.AbstractRegionFactory
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMESFields inherited from interface org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME -
Constructor Summary
ConstructorsConstructorDescriptionHazelcastLocalCacheRegionFactory(com.hazelcast.hibernate.PhoneHomeService phoneHomeService) HazelcastLocalCacheRegionFactory(org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected RegionCachecreateRegionCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig) protected RegionCachecreateTimestampsRegionCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) longMethods inherited from class com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
buildDomainDataRegion, createDomainDataStorageAccess, createQueryResultsRegionStorageAccess, createTimestampsRegionStorageAccess, getHazelcastInstance, getImplicitCacheKeysFactory, isStarted, prepareForUse, releaseFromUseMethods inherited from class org.hibernate.cache.spi.support.RegionFactoryTemplate
buildQueryResultsRegion, buildTimestampsRegionMethods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, qualify, start, stop, verifiedStartStatus, verifyStarted
-
Constructor Details
-
HazelcastLocalCacheRegionFactory
public HazelcastLocalCacheRegionFactory() -
HazelcastLocalCacheRegionFactory
public HazelcastLocalCacheRegionFactory(org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory) -
HazelcastLocalCacheRegionFactory
public HazelcastLocalCacheRegionFactory(com.hazelcast.hibernate.PhoneHomeService phoneHomeService)
-
-
Method Details
-
createRegionCache
protected RegionCache createRegionCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig) - Specified by:
createRegionCachein classAbstractHazelcastCacheRegionFactory
-
createTimestampsRegionCache
protected RegionCache createTimestampsRegionCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) - Specified by:
createTimestampsRegionCachein classAbstractHazelcastCacheRegionFactory
-
nextTimestamp
public long nextTimestamp()- Specified by:
nextTimestampin interfaceorg.hibernate.cache.spi.RegionFactory- Overrides:
nextTimestampin classorg.hibernate.cache.spi.AbstractRegionFactory
-