|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hibernate.cache.SwarmCache
public class SwarmCache
| Constructor Summary | |
|---|---|
SwarmCache(net.sf.swarmcache.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 SwarmCache(net.sf.swarmcache.ObjectCache cache,
String regionName)
| Method Detail |
|---|
public Object get(Object key)
throws CacheException
get in interface Cachekey -
CacheException
public Object read(Object key)
throws CacheException
read in interface CacheCacheException
public void update(Object key,
Object value)
throws CacheException
update in interface Cachekey - value -
CacheException
public void put(Object key,
Object value)
throws CacheException
put in interface Cachekey - value -
CacheException
public void remove(Object key)
throws CacheException
remove in interface CacheCacheException
public void clear()
throws CacheException
clear in interface CacheCacheException
public void destroy()
throws CacheException
destroy in interface CacheCacheException
public void lock(Object key)
throws CacheException
lock in interface CacheCacheException
public void unlock(Object key)
throws CacheException
unlock in interface CacheCacheExceptionpublic long nextTimestamp()
nextTimestamp in interface Cachepublic int getTimeout()
getTimeout in interface Cachepublic String getRegionName()
getRegionName in interface Cachepublic long getSizeInMemory()
getSizeInMemory in interface Cachepublic long getElementCountInMemory()
getElementCountInMemory in interface Cachepublic long getElementCountOnDisk()
getElementCountOnDisk in interface Cachepublic Map toMap()
toMap in interface Cachepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||