|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Sometimes it might not make sense to have a fullblown MemoryManager taking care of some resources, but instead have a delegate that the MemoryManager can make use of. This is the interface for those delegates to implement.
| Field Summary | |
static int |
REDUCE_AGGRESSIVELY
When we're desperately low on memory, we should aggressively reduce memory usage, or else being too timid will simply waste time |
static int |
REDUCE_SOMEWHAT
Since we don't always want to eliminate all caching, when we're low on memory, for performance reasons, this is an indicator to conservatively reduce memory |
| Method Summary | |
Library |
getLibrary()
Get the documents library object. |
boolean |
reduceMemory(int reductionPolicy)
Reduce the amount of memory, as managed by this delegate. |
| Field Detail |
public static final int REDUCE_SOMEWHAT
public static final int REDUCE_AGGRESSIVELY
| Method Detail |
public boolean reduceMemory(int reductionPolicy)
public Library getLibrary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||