|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICacheStore
Storage for cacheable objects. Selected cache engines must implement this interface.
| Method Summary | |
|---|---|
void |
destroy()
Allows for cleanup of a cache implementation. |
ICacheable |
get(String name)
Return a cached object with the given name. |
Iterator<String> |
getObjectNames()
Return iterator over the names of all already loaded objects in the storage. |
Iterator<SoftReference<? extends ICacheable>> |
getObjects()
Return iterator over the already loaded objects in the storage. |
boolean |
offer(String name,
Object obj)
Offer an object to the cache with an associated key. |
void |
put(String name,
Object obj)
Puts an object in the cache with the associated key. |
boolean |
remove(ICacheable obj)
Delete the passed cached object. |
boolean |
remove(String name)
Delete the cached object with the given name. |
void |
setMaxEntries(int max)
Sets the maximum number of entries for the cache. |
| Method Detail |
|---|
boolean offer(String name,
Object obj)
name - string name representing the objectobj - cacheable object
void put(String name,
Object obj)
name - string name representing the objectobj - cacheable objectICacheable get(String name)
name - the name of the object to return
null if no such object was foundboolean remove(ICacheable obj)
obj - the object to delete
boolean remove(String name)
name - the name of the object to delete
Iterator<String> getObjectNames()
Iterator<SoftReference<? extends ICacheable>> getObjects()
void setMaxEntries(int max)
max - upper-limit of the cachevoid destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||