Class SoftIdentityMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IdentityMap

    public class SoftIdentityMap
    extends WeakIdentityMap

    Purpose: A SoftIdentityMap holds all objects referenced by the application. The soft identity map is similar to the weak identity map except for the fact that it allows only garbage collects when memory is low.

    Responsibilities:

    • Guarantees identity.
    • Allows garbage collection when memory is low.
    Since:
    TopLink 11g
    Author:
    James Sutherland
    See Also:
    Serialized Form
    • Method Detail

      • createCacheKey

        public CacheKey createCacheKey​(java.lang.Object primaryKey,
                                       java.lang.Object object,
                                       java.lang.Object writeLockValue,
                                       long readTime)
        Description copied from class: AbstractIdentityMap
        Create the correct type of CacheKey for this map.
        Overrides:
        createCacheKey in class WeakIdentityMap