org.hd.d.pg2k.svrCore
Interface MemoryTools.Compactable

All Known Implementing Classes:
AllExhibitProperties, DuplicateIDChecker, ExhibitPropsComputable, ExhibitPropsLoadable, MemoryTools.SimpleLRUMapAutoSizeForHitRate, MemoryTools.SimpleProbabilisticCache, MemoryTools.SoftReferenceMap
Enclosing class:
MemoryTools

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

compact

void compact()
Attempt to compact the data structure, possibly sensitive to current heap state.


getCompactableInstanceName

java.lang.String getCompactableInstanceName()
Get instance name; may be null.


DHD Multimedia Gallery V1.57.21

Copyright (c) 1996-2011, Damon Hart-Davis. All rights reserved.