java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
com.hazelcast.hibernate.HazelcastCacheRegionFactory
- 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 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
ConstructorsConstructorDescriptionHazelcastCacheRegionFactory(com.hazelcast.hibernate.PhoneHomeService phoneHomeService) HazelcastCacheRegionFactory(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) Methods 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, nextTimestamp, qualify, start, stop, verifiedStartStatus, verifyStarted
-
Constructor Details
-
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory() -
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory(org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory) -
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory(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
-