|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.cache.TreeCache
public class TreeCache
Represents a particular region within the given JBossCache TreeCache.
| Constructor Summary | |
|---|---|
TreeCache(org.jboss.cache.TreeCache cache,
String regionName,
TransactionManager transactionManager)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
Object |
get(Object key)
Get an item from the cache, nontransactionally |
long |
getElementCountInMemory()
The count of entries currently contained in the regions in-memory store. |
long |
getElementCountOnDisk()
The count of entries currently contained in the regions disk store. |
String |
getRegionName()
Get the name of the cache region |
long |
getSizeInMemory()
The number of bytes is this cache region currently consuming in memory. |
int |
getTimeout()
Get a reasonable "lock timeout" |
void |
lock(Object key)
If this is a clustered cache, lock the item |
long |
nextTimestamp()
Generate a timestamp |
void |
put(Object key,
Object value)
Add an item to the cache, nontransactionally, with failfast semantics |
Object |
read(Object key)
Get an item from the cache |
void |
remove(Object key)
Remove an item from the cache |
Map |
toMap()
optional operation |
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 TreeCache(org.jboss.cache.TreeCache cache,
String regionName,
TransactionManager transactionManager)
throws CacheException
CacheException| Method Detail |
|---|
public Object get(Object key)
throws CacheException
Cache
get in interface CacheCacheException
public Object read(Object key)
throws CacheException
Cache
read in interface CacheCacheException
public void update(Object key,
Object value)
throws CacheException
Cache
update in interface CacheCacheException
public void put(Object key,
Object value)
throws CacheException
Cache
put in interface CacheCacheException
public void remove(Object key)
throws CacheException
Cache
remove in interface CacheCacheException
public void clear()
throws CacheException
Cache
clear in interface CacheCacheException
public void destroy()
throws CacheException
Cache
destroy in interface CacheCacheException
public void lock(Object key)
throws CacheException
Cache
lock in interface CacheCacheException
public void unlock(Object key)
throws CacheException
Cache
unlock in interface CacheCacheExceptionpublic long nextTimestamp()
Cache
nextTimestamp in interface Cachepublic int getTimeout()
Cache
getTimeout in interface Cachepublic String getRegionName()
Cache
getRegionName in interface Cachepublic long getSizeInMemory()
Cache
getSizeInMemory in interface Cachepublic long getElementCountInMemory()
Cache
getElementCountInMemory in interface Cachepublic long getElementCountOnDisk()
Cache
getElementCountOnDisk in interface Cachepublic Map toMap()
Cache
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 | |||||||||