com.atlassian.confluence.cache.tangosol.hibernate
Class CoherenceHibernateCacheProvider
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoherenceHibernateCacheProvider
public CoherenceHibernateCacheProvider()
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.