com.atlassian.confluence.cache.tangosol.hibernate
Class CoherenceHibernateCacheProvider

java.lang.Object
  extended by com.atlassian.confluence.cache.tangosol.hibernate.CoherenceHibernateCacheProvider
All Implemented Interfaces:
net.sf.hibernate.cache.CacheProvider

public class CoherenceHibernateCacheProvider
extends Object
implements net.sf.hibernate.cache.CacheProvider

A Hibernate cache provider which uses Tangosol's distributed caches under the covers.

Code sourced mainly from original version of document at http://hibernate.org/132.html?cmd=comphist&histnode=80.


Constructor Summary
CoherenceHibernateCacheProvider()
           
 
Method Summary
 net.sf.hibernate.cache.Cache buildCache(String cacheName, Properties properties)
           
 TangosolCacheFactory getTangosolCacheFactory()
           
static long getTimeMillis()
           
 long nextTimestamp()
           
 void start(Properties properties)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoherenceHibernateCacheProvider

public CoherenceHibernateCacheProvider()
Method Detail

getTangosolCacheFactory

public TangosolCacheFactory getTangosolCacheFactory()

getTimeMillis

public static long getTimeMillis()

buildCache

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

nextTimestamp

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

start

public void start(Properties properties)
           throws net.sf.hibernate.cache.CacheException
Specified by:
start in interface net.sf.hibernate.cache.CacheProvider
Throws:
net.sf.hibernate.cache.CacheException

stop

public void stop()
Specified by:
stop in interface net.sf.hibernate.cache.CacheProvider


Copyright © 2003-2012 Atlassian. All Rights Reserved.