com.atlassian.confluence.cache.tangosol.hibernate
Class CoherenceInvokableHibernateCache
java.lang.Object
com.atlassian.confluence.cache.tangosol.hibernate.CoherenceInvokableHibernateCache
- All Implemented Interfaces:
- InvokableHibernateCache, net.sf.hibernate.cache.Cache
public class CoherenceInvokableHibernateCache
- extends Object
- implements net.sf.hibernate.cache.Cache, InvokableHibernateCache
Simple decorator class to map hibernate caches to Confluence caches
CoherenceInvokableHibernateCache
public CoherenceInvokableHibernateCache(com.tangosol.net.NamedCache cache)
get
public Object get(Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
get
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
put
public void put(Object key,
Object value)
throws net.sf.hibernate.cache.CacheException
- Specified by:
put
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
remove
public void remove(Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
remove
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
clear
public void clear()
throws net.sf.hibernate.cache.CacheException
- Specified by:
clear
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
destroy
public void destroy()
throws net.sf.hibernate.cache.CacheException
- Specified by:
destroy
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
lock
public void lock(Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
lock
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
unlock
public void unlock(Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
unlock
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp
in interface net.sf.hibernate.cache.Cache
getTimeout
public int getTimeout()
- Specified by:
getTimeout
in interface net.sf.hibernate.cache.Cache
invoke
public Object invoke(Object key,
com.tangosol.util.InvocableMap.EntryProcessor processor)
- Specified by:
invoke
in interface InvokableHibernateCache
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2011 Atlassian. All Rights Reserved.