|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICacheManager
| Method Summary | |
|---|---|
void |
add(java.lang.String clazz,
java.lang.String key,
java.lang.ref.SoftReference softRef)
Adds an object to to the cache |
void |
discard(java.lang.String clazz,
java.lang.String key)
Discard the object from the cache |
java.lang.Object |
get(java.lang.String clazz,
java.lang.String key)
Retrieve a CFC from the cache |
java.util.Set |
getCachedClasses()
gets the set of classes that are stored in this cache |
boolean |
has(java.lang.String clazz,
java.lang.String key)
Whether the CFC has been cached |
java.lang.Object |
popReapedCFC(java.lang.ref.SoftReference softRef)
remove a soft reference cleared object from the map so it can be fired for a discard queue |
void |
reap(java.lang.String clazz,
java.lang.ref.SoftReference softRef)
Reap off a cleared soft reference |
| Method Detail |
|---|
boolean has(java.lang.String clazz,
java.lang.String key)
clazz - The class of CFCkey - The key the CFC is stored under
java.lang.Object get(java.lang.String clazz,
java.lang.String key)
throws ObjectNotFoundException
clazz - The clas of the CFCkey - The key it was stored under
ObjectNotFoundException - if the object doesn't exist in the cache
void add(java.lang.String clazz,
java.lang.String key,
java.lang.ref.SoftReference softRef)
clazz - The class of the objectkey - The key of the objectsoftRef - The soft reference containing the CFC
void discard(java.lang.String clazz,
java.lang.String key)
clazz - the class of the objectkey - the key to discard
void reap(java.lang.String clazz,
java.lang.ref.SoftReference softRef)
clazz - the class to reap tosoftRef - the soft reference to reapjava.lang.Object popReapedCFC(java.lang.ref.SoftReference softRef)
softRef - the softreference to be clearedjava.util.Set getCachedClasses()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||