com.hazelcast.hibernate
Class HazelcastCacheRegionFactory
java.lang.Object
com.hazelcast.hibernate.HazelcastCacheRegionFactory
- All Implemented Interfaces:
- org.hibernate.cache.RegionFactory
public class HazelcastCacheRegionFactory
- extends Object
- implements org.hibernate.cache.RegionFactory
- Author:
- Leo Kim (lkim@limewire.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory()
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory(Properties properties)
HazelcastCacheRegionFactory
public HazelcastCacheRegionFactory(HazelcastInstance instance)
buildCollectionRegion
public org.hibernate.cache.CollectionRegion buildCollectionRegion(String regionName,
Properties properties,
org.hibernate.cache.CacheDataDescription metadata)
throws org.hibernate.cache.CacheException
- Specified by:
buildCollectionRegion in interface org.hibernate.cache.RegionFactory
- Throws:
org.hibernate.cache.CacheException
buildEntityRegion
public org.hibernate.cache.EntityRegion buildEntityRegion(String regionName,
Properties properties,
org.hibernate.cache.CacheDataDescription metadata)
throws org.hibernate.cache.CacheException
- Specified by:
buildEntityRegion in interface org.hibernate.cache.RegionFactory
- Throws:
org.hibernate.cache.CacheException
buildQueryResultsRegion
public org.hibernate.cache.QueryResultsRegion buildQueryResultsRegion(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
buildQueryResultsRegion in interface org.hibernate.cache.RegionFactory
- Throws:
org.hibernate.cache.CacheException
buildTimestampsRegion
public org.hibernate.cache.TimestampsRegion buildTimestampsRegion(String regionName,
Properties properties)
throws org.hibernate.cache.CacheException
- Specified by:
buildTimestampsRegion in interface org.hibernate.cache.RegionFactory
- Throws:
org.hibernate.cache.CacheException
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.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.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.RegionFactory
- Throws:
org.hibernate.cache.CacheException
stop
public void stop()
- Specified by:
stop in interface org.hibernate.cache.RegionFactory
getHazelcastInstance
public HazelcastInstance getHazelcastInstance()
getDefaultAccessType
public org.hibernate.cache.access.AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessType in interface org.hibernate.cache.RegionFactory
Copyright © 2011 Hazel Bilisim Ltd.. All Rights Reserved.