|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.cache.HashtableCache
A lightweight implementation of the Cache interface
| Constructor Summary | |
HashtableCache()
|
|
| Method Summary | |
void |
clear()
Clear the cache |
void |
destroy()
Clean up |
Object |
get(Object key)
Get an item from the cache |
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 |
void |
remove(Object key)
Remove an item from the cache |
void |
unlock(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 HashtableCache()
| Method Detail |
public Object get(Object key)
throws CacheException
Cache
get in interface Cachekey -
CacheException
public void put(Object key,
Object value)
throws CacheException
Cache
put in interface Cachekey - value -
CacheException
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 Cache
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||