com.hazelcast.hibernate
Class HazelcastCacheRegionFactory

java.lang.Object
  extended by com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
      extended by com.hazelcast.hibernate.HazelcastCacheRegionFactory
All Implemented Interfaces:
Serializable, org.hibernate.cache.spi.RegionFactory, org.hibernate.service.Service

public class HazelcastCacheRegionFactory
extends AbstractHazelcastCacheRegionFactory
implements org.hibernate.cache.RegionFactory

Simple RegionFactory implementation to return Hazelcast based Region implementations

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
cleanupService, instance
 
Constructor Summary
HazelcastCacheRegionFactory()
           
HazelcastCacheRegionFactory(HazelcastInstance instance)
           
HazelcastCacheRegionFactory(Properties properties)
           
 
Method Summary
 CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata)
           
 EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata)
           
 TimestampsRegion buildTimestampsRegion(String regionName, Properties properties)
           
 
Methods inherited from class com.hazelcast.hibernate.AbstractHazelcastCacheRegionFactory
buildQueryResultsRegion, getDefaultAccessType, getHazelcastInstance, isMinimalPutsEnabledByDefault, nextTimestamp, start, stop
 
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
buildNaturalIdRegion, buildQueryResultsRegion, getDefaultAccessType, isMinimalPutsEnabledByDefault, nextTimestamp, start, stop
 

Constructor Detail

HazelcastCacheRegionFactory

public HazelcastCacheRegionFactory()

HazelcastCacheRegionFactory

public HazelcastCacheRegionFactory(HazelcastInstance instance)

HazelcastCacheRegionFactory

public HazelcastCacheRegionFactory(Properties properties)
Method Detail

buildCollectionRegion

public CollectionRegion buildCollectionRegion(String regionName,
                                              Properties properties,
                                              CacheDataDescription metadata)
                                       throws org.hibernate.cache.CacheException
Specified by:
buildCollectionRegion in interface org.hibernate.cache.spi.RegionFactory
Throws:
org.hibernate.cache.CacheException

buildEntityRegion

public EntityRegion buildEntityRegion(String regionName,
                                      Properties properties,
                                      CacheDataDescription metadata)
                               throws org.hibernate.cache.CacheException
Specified by:
buildEntityRegion in interface org.hibernate.cache.spi.RegionFactory
Throws:
org.hibernate.cache.CacheException

buildTimestampsRegion

public TimestampsRegion buildTimestampsRegion(String regionName,
                                              Properties properties)
                                       throws org.hibernate.cache.CacheException
Specified by:
buildTimestampsRegion in interface org.hibernate.cache.spi.RegionFactory
Throws:
org.hibernate.cache.CacheException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.