|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface MarkupCache.ICache
MarkupCache allows you to implement you own cache implementation. ICache is the interface the implementation must comply with.
MarkupCache
Method Summary | |
---|---|
void |
clear()
Clear the cache |
boolean |
containsKey(java.lang.Object key)
Check if key is in the cache |
java.lang.Object |
get(java.lang.Object key)
Get the cache element associated with the key |
java.util.Collection |
getKeys()
Get all the keys referencing cache entries |
void |
put(java.lang.Object key,
java.lang.Object value)
Put an entry into the cache |
boolean |
remove(java.lang.Object key)
Remove an entry from the cache. |
void |
shutdown()
Cleanup and shutdown |
int |
size()
Get the number of cache entries |
Method Detail |
---|
void clear()
boolean remove(java.lang.Object key)
key
-
java.lang.Object get(java.lang.Object key)
key
-
java.util.Collection getKeys()
boolean containsKey(java.lang.Object key)
key
-
int size()
void put(java.lang.Object key, java.lang.Object value)
key
- The reference key to find the elementvalue
- The element to be cachedvoid shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |