|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trackstudio.tools.cache.QueryCachedSwarmCache
public class QueryCachedSwarmCache
Constructor Summary | |
---|---|
QueryCachedSwarmCache(ObjectCache cache,
java.lang.String regionName)
|
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 |
long |
getElementCountInMemory()
|
long |
getElementCountOnDisk()
|
java.lang.String |
getRegionName()
|
long |
getSizeInMemory()
|
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 |
java.lang.Object |
read(java.lang.Object key)
|
void |
remove(java.lang.Object key)
Remove an item from the cache |
java.util.Map |
toMap()
|
void |
unlock(java.lang.Object key)
If this is a clustered cache, unlock the item |
void |
update(java.lang.Object key,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryCachedSwarmCache(ObjectCache cache, java.lang.String regionName)
Method Detail |
---|
public java.lang.Object get(java.lang.Object key) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.Cache
key
-
org.hibernate.cache.CacheException
public void update(java.lang.Object key, java.lang.Object value) throws org.hibernate.cache.CacheException
update
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public void put(java.lang.Object key, java.lang.Object value) throws org.hibernate.cache.CacheException
put
in interface org.hibernate.cache.Cache
key
- value
-
org.hibernate.cache.CacheException
public void remove(java.lang.Object key) throws org.hibernate.cache.CacheException
remove
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public void clear() throws org.hibernate.cache.CacheException
clear
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public void destroy() throws org.hibernate.cache.CacheException
destroy
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public void lock(java.lang.Object key) throws org.hibernate.cache.CacheException
lock
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public void unlock(java.lang.Object key) throws org.hibernate.cache.CacheException
unlock
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public long nextTimestamp()
nextTimestamp
in interface org.hibernate.cache.Cache
public java.lang.Object read(java.lang.Object key) throws org.hibernate.cache.CacheException
read
in interface org.hibernate.cache.Cache
org.hibernate.cache.CacheException
public int getTimeout()
getTimeout
in interface org.hibernate.cache.Cache
public java.lang.String getRegionName()
getRegionName
in interface org.hibernate.cache.Cache
public long getSizeInMemory()
getSizeInMemory
in interface org.hibernate.cache.Cache
public long getElementCountInMemory()
getElementCountInMemory
in interface org.hibernate.cache.Cache
public long getElementCountOnDisk()
getElementCountOnDisk
in interface org.hibernate.cache.Cache
public java.util.Map toMap()
toMap
in interface org.hibernate.cache.Cache
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |