com.trackstudio.tools.cache
Class QueryCachedSwarmCacheProvider

java.lang.Object
  extended by com.trackstudio.tools.cache.QueryCachedSwarmCacheProvider
All Implemented Interfaces:
org.hibernate.cache.CacheProvider

public class QueryCachedSwarmCacheProvider
extends java.lang.Object
implements org.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
 org.hibernate.cache.Cache buildCache(java.lang.String regionName, java.util.Properties properties)
           
 boolean isMinimalPutsEnabledByDefault()
           
 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 org.hibernate.cache.Cache buildCache(java.lang.String regionName,
                                            java.util.Properties properties)
                                     throws org.hibernate.cache.CacheException
Specified by:
buildCache in interface org.hibernate.cache.CacheProvider
Throws:
org.hibernate.cache.CacheException

start

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

Specified by:
start in interface org.hibernate.cache.CacheProvider
Parameters:
properties - current configuration settings.
Throws:
org.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 org.hibernate.cache.CacheProvider

nextTimestamp

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

isMinimalPutsEnabledByDefault

public boolean isMinimalPutsEnabledByDefault()
Specified by:
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.CacheProvider


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