|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Classes which can be used as a cache implementation need to implement this interface. An implementation of this interface has to be thread-safe to guarantee correctness.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Method Summary | |
void |
config(Map configuration)
Configure the implementation with the given configuration values |
int |
getCount(Object key)
Returns the hit-count on a certain key (if implementable). |
int |
maxSize()
Gets the (maximal) size of the cache (if implementable) |
void |
setMaxSize(int size)
Sets the (maximal) size of the cache (if implementable). |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
public void setMaxSize(int size)
public int maxSize()
public int getCount(Object key)
public void config(Map configuration)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||