com.hazelcast.hibernate
Class AbstractHazelcastCacheRegionFactory

java.lang.Object
  extended by 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

Field Summary
protected  CleanupService cleanupService
           
protected  HazelcastInstance instance
           
 
Constructor Summary
AbstractHazelcastCacheRegionFactory()
           
AbstractHazelcastCacheRegionFactory(HazelcastInstance instance)
           
AbstractHazelcastCacheRegionFactory(Properties properties)
           
 
Method Summary
 QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties)
           
 AccessType getDefaultAccessType()
           
 HazelcastInstance getHazelcastInstance()
           
 boolean isMinimalPutsEnabledByDefault()
           
 long nextTimestamp()
           
 void start(org.hibernate.cfg.Settings settings, Properties properties)
           
 void 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
buildCollectionRegion, buildEntityRegion, buildNaturalIdRegion, buildTimestampsRegion
 

Field Detail

instance

protected HazelcastInstance instance

cleanupService

protected CleanupService cleanupService
Constructor Detail

AbstractHazelcastCacheRegionFactory

public AbstractHazelcastCacheRegionFactory()

AbstractHazelcastCacheRegionFactory

public AbstractHazelcastCacheRegionFactory(Properties properties)

AbstractHazelcastCacheRegionFactory

public AbstractHazelcastCacheRegionFactory(HazelcastInstance instance)
Method Detail

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.