|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface MemoryTools.Compactable
Marker interface indicating that a class is suitable for compacting in memory. Generally the single compact() method should not change the logical state, nor should it consume lots of resources if avoidable (eg lots of memory, or lots of CPUs) and may call Thread.yield() periodically, and by the time it returns all compact()ion activity has completed (ie this will not launch background threads to do the work, though may often be launched from one).
Calling the compact() method should be thread-safe, ie so we can do it asynchronously from a background thread if we wish, for example when we detect system memory to be under stress.
| Method Summary | |
|---|---|
void |
compact()
Attempt to compact the data structure, possibly sensitive to current heap state. |
java.lang.String |
getCompactableInstanceName()
Get instance name; may be null. |
| Method Detail |
|---|
void compact()
java.lang.String getCompactableInstanceName()
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||