gran.tools.cache
Class QueryCachedSwarmCacheProvider

java.lang.Object
  extended bygran.tools.cache.QueryCachedSwarmCacheProvider
All Implemented Interfaces:
net.sf.hibernate.cache.CacheProvider

public class QueryCachedSwarmCacheProvider
extends java.lang.Object
implements net.sf.hibernate.cache.CacheProvider

Support for SwarmCache replicated cache. SwarmCache does not support locking, so strict "read-write" semantics are unsupported.

Author:
Jason Carreira

Constructor Summary
QueryCachedSwarmCacheProvider()
           
 
Method Summary
 net.sf.hibernate.cache.Cache buildCache(java.lang.String regionName, java.util.Properties properties)
           
 long nextTimestamp()
           
 void start(java.util.Properties properties)
          Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
 void stop()
          Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryCachedSwarmCacheProvider

public QueryCachedSwarmCacheProvider()
Method Detail

buildCache

public net.sf.hibernate.cache.Cache buildCache(java.lang.String regionName,
                                               java.util.Properties properties)
                                        throws net.sf.hibernate.cache.CacheException
Specified by:
buildCache in interface net.sf.hibernate.cache.CacheProvider
Throws:
net.sf.hibernate.cache.CacheException

start

public void start(java.util.Properties properties)
           throws net.sf.hibernate.cache.CacheException
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.

Specified by:
start in interface net.sf.hibernate.cache.CacheProvider
Parameters:
properties - current configuration settings.
Throws:
net.sf.hibernate.cache.CacheException

stop

public void stop()
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().

Specified by:
stop in interface net.sf.hibernate.cache.CacheProvider

nextTimestamp

public long nextTimestamp()
Specified by:
nextTimestamp in interface net.sf.hibernate.cache.CacheProvider


Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.