Class SoftRefCache

java.lang.Object
org.datanucleus.cache.SoftRefCache
All Implemented Interfaces:
Map<Object,DNStateManager>, Level1Cache

public class SoftRefCache extends Object implements Level1Cache
Level 1 Cache using Soft referenced objects in a Map.

If map entry value object is not actively being used, i.e. no other object has a strong reference to it, it may become garbage collected at the discretion of the garbage collector (typically if the VM is low on memory). If this happens, the entry in the SoftValueMap corresponding to the value object will also be removed.

See Also: