|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgran.tools.cache.QueryCachedSwarmCache
Constructor Summary | |
QueryCachedSwarmCache(ObjectCache cache)
|
Method Summary | |
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
java.lang.Object |
get(java.lang.Object key)
Get an item from the cache |
int |
getTimeout()
Get a reasonable "lock timeout" |
void |
lock(java.lang.Object key)
If this is a clustered cache, lock the item |
long |
nextTimestamp()
Generate a (coarse) timestamp |
void |
put(java.lang.Object key,
java.lang.Object value)
Add an item to the cache |
void |
remove(java.lang.Object key)
Remove an item from the cache |
void |
unlock(java.lang.Object key)
If this is a clustered cache, unlock the item |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryCachedSwarmCache(ObjectCache cache)
Method Detail |
public java.lang.Object get(java.lang.Object key) throws net.sf.hibernate.cache.CacheException
get
in interface net.sf.hibernate.cache.Cache
key
-
net.sf.hibernate.cache.CacheException
public void put(java.lang.Object key, java.lang.Object value) throws net.sf.hibernate.cache.CacheException
put
in interface net.sf.hibernate.cache.Cache
key
- value
-
net.sf.hibernate.cache.CacheException
public void remove(java.lang.Object key) throws net.sf.hibernate.cache.CacheException
remove
in interface net.sf.hibernate.cache.Cache
net.sf.hibernate.cache.CacheException
public void clear() throws net.sf.hibernate.cache.CacheException
clear
in interface net.sf.hibernate.cache.Cache
net.sf.hibernate.cache.CacheException
public void destroy() throws net.sf.hibernate.cache.CacheException
destroy
in interface net.sf.hibernate.cache.Cache
net.sf.hibernate.cache.CacheException
public void lock(java.lang.Object key) throws net.sf.hibernate.cache.CacheException
lock
in interface net.sf.hibernate.cache.Cache
net.sf.hibernate.cache.CacheException
public void unlock(java.lang.Object key) throws net.sf.hibernate.cache.CacheException
unlock
in interface net.sf.hibernate.cache.Cache
net.sf.hibernate.cache.CacheException
public long nextTimestamp()
nextTimestamp
in interface net.sf.hibernate.cache.Cache
public int getTimeout()
getTimeout
in interface net.sf.hibernate.cache.Cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |