com.atlassian.confluence.cache
Class DummyCache
java.lang.Object
com.atlassian.confluence.cache.DummyCache
- All Implemented Interfaces:
- com.atlassian.hibernate.extras.tangosol.AtlassianHibernateCache, net.sf.hibernate.cache.Cache
public class DummyCache
- extends java.lang.Object
- implements com.atlassian.hibernate.extras.tangosol.AtlassianHibernateCache
A Hibernate Cache implementation that does no caching.
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
void |
destroy()
|
java.lang.Object |
get(java.lang.Object key)
|
int |
getTimeout()
|
|
invoke(K key,
com.atlassian.hibernate.extras.tangosol.CacheEntryProcessor<K,V,T> processor)
|
void |
lock(java.lang.Object key)
|
long |
nextTimestamp()
|
void |
put(java.lang.Object key,
java.lang.Object value)
|
void |
remove(java.lang.Object key)
|
void |
unlock(java.lang.Object key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyCache
public DummyCache()
get
public java.lang.Object get(java.lang.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(java.lang.Object key,
java.lang.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(java.lang.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(java.lang.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(java.lang.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
containsKey
public boolean containsKey(java.lang.Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
containsKey
in interface com.atlassian.hibernate.extras.tangosol.AtlassianHibernateCache
- Throws:
net.sf.hibernate.cache.CacheException
invoke
public <T,K,V> T invoke(K key,
com.atlassian.hibernate.extras.tangosol.CacheEntryProcessor<K,V,T> processor)
throws net.sf.hibernate.cache.CacheException
- Specified by:
invoke
in interface com.atlassian.hibernate.extras.tangosol.AtlassianHibernateCache
- Throws:
net.sf.hibernate.cache.CacheException
Copyright © 2003-2014 Atlassian. All Rights Reserved.