com.hazelcast.hibernate
Class AbstractHazelcastCacheRegionFactory
java.lang.Object
com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
- All Implemented Interfaces:
- Serializable, org.hibernate.cache.spi.RegionFactory, org.hibernate.service.Service
- Direct Known Subclasses:
- HazelcastCacheRegionFactory, HazelcastLocalCacheRegionFactory
public abstract class AbstractHazelcastCacheRegionFactory
- extends Object
- implements org.hibernate.cache.RegionFactory
Abstract superclass of Hazelcast based RegionFactory
implementations
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.hibernate.cache.spi.RegionFactory |
buildCollectionRegion, buildEntityRegion, buildNaturalIdRegion, buildTimestampsRegion |
instance
protected HazelcastInstance instance
cleanupService
protected CleanupService cleanupService
AbstractHazelcastCacheRegionFactory
public AbstractHazelcastCacheRegionFactory()
AbstractHazelcastCacheRegionFactory
public AbstractHazelcastCacheRegionFactory(Properties properties)
AbstractHazelcastCacheRegionFactory
public AbstractHazelcastCacheRegionFactory(HazelcastInstance instance)
buildQueryResultsRegion
public final QueryResultsRegion buildQueryResultsRegion(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
buildQueryResultsRegion
in interface org.hibernate.cache.spi.RegionFactory
- Throws:
org.hibernate.cache.CacheException
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefault
in interface org.hibernate.cache.spi.RegionFactory
- Returns:
- true - for a large cluster, unnecessary puts will most likely slow things down.
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp
in interface org.hibernate.cache.spi.RegionFactory
start
public void start(org.hibernate.cfg.Settings settings,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
start
in interface org.hibernate.cache.spi.RegionFactory
- Throws:
org.hibernate.cache.CacheException
stop
public void stop()
- Specified by:
stop
in interface org.hibernate.cache.spi.RegionFactory
getHazelcastInstance
public HazelcastInstance getHazelcastInstance()
getDefaultAccessType
public AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessType
in interface org.hibernate.cache.spi.RegionFactory
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.