|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.database.cache.custom.CustomCache
public class CustomCache
| Constructor Summary | |
|---|---|
CustomCache(ObjectCache cache,
String regionName)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
Object |
get(Object key)
Get an item from the cache |
long |
getElementCountInMemory()
|
long |
getElementCountOnDisk()
|
String |
getRegionName()
|
long |
getSizeInMemory()
|
int |
getTimeout()
Get a reasonable "lock timeout" |
void |
lock(Object key)
If this is a clustered cache, lock the item |
long |
nextTimestamp()
Generate a (coarse) timestamp |
void |
put(Object key,
Object value)
Add an item to the cache |
Object |
read(Object key)
|
void |
remove(Object key)
Remove an item from the cache |
Map |
toMap()
|
String |
toString()
|
void |
unlock(Object key)
If this is a clustered cache, unlock the item |
void |
update(Object key,
Object value)
Add an item to the cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CustomCache(ObjectCache cache,
String regionName)
| Method Detail |
|---|
public Object get(Object key)
throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.Cachekey -
org.hibernate.cache.CacheException
public Object read(Object key)
throws org.hibernate.cache.CacheException
read in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void update(Object key,
Object value)
throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.Cachekey - value -
org.hibernate.cache.CacheException
public void put(Object key,
Object value)
throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.Cachekey - value -
org.hibernate.cache.CacheException
public void remove(Object key)
throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void clear()
throws org.hibernate.cache.CacheException
clear in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void lock(Object key)
throws org.hibernate.cache.CacheException
lock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheException
public void unlock(Object key)
throws org.hibernate.cache.CacheException
unlock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Cachepublic int getTimeout()
getTimeout in interface org.hibernate.cache.Cachepublic String getRegionName()
getRegionName in interface org.hibernate.cache.Cachepublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Cachepublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.Cachepublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Cachepublic Map toMap()
toMap in interface org.hibernate.cache.Cachepublic String toString()
toString in class Object
|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||