|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - type of object keyV - type of cache objectspublic interface CacheBackend<K,V>
Interface for cache backends.
| Method Summary | |
|---|---|
V |
create(K key,
Date d)
Create new object in backend. |
CacheItem<K,V> |
get(K key)
Get cache item from backend. |
Iterator<CacheItem<K,V>> |
load()
Get iterator over saved items. |
void |
put(K key,
V value,
Date d)
Save cache item in backend. |
void |
remove(K key)
Remove object from backend. |
void |
unload(K key,
Date d)
|
| Method Detail |
|---|
CacheItem<K,V> get(K key)
throws CacheException
key - object key
CacheException - on backend exceptions
void put(K key,
V value,
Date d)
throws CacheException
key - object keyvalue - objectd - date of last access
CacheException - on backend exceptions
V create(K key,
Date d)
throws CacheException
key - object keyd - date of last access
CacheException - on backend exceptions
void remove(K key)
throws CacheException
key - object key
CacheException - on backend exceptions
Iterator<CacheItem<K,V>> load()
throws CacheException
CacheException - on backen exceptions
void unload(K key,
Date d)
throws CacheException
CacheException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||