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:
Constructor and Description |
---|
SoftIdentityMap(int size,
ClassDescriptor descriptor,
AbstractSession session,
boolean isIsolated) |
Modifier and Type | Method and Description |
---|---|
CacheKey |
createCacheKey(java.lang.Object primaryKey,
java.lang.Object object,
java.lang.Object writeLockValue,
long readTime)
Create the correct type of CacheKey for this map.
|
clone, collectLocks, elements, getCacheKey, getCacheKeys, getSize, getSize, keys, keys, lazyRelationshipLoaded, put, remove, resetCacheKey
acquireDeferredLock, acquireLock, acquireLockNoWait, acquireLockWithWait, acquireReadLockOnCacheKey, acquireReadLockOnCacheKeyNoWait, containsKey, get, getAllCacheKeysFromIdentityMapWithEntityPK, getAllFromIdentityMapWithEntityPK, getCacheKeyForLock, getDefaultIdentityMapClass, getDescriptor, getDescriptorClass, getMaxSize, getWrapper, getWriteLockValue, release, remove, setDescriptor, setWrapper, setWriteLockValue, toString, updateMaxSize
public SoftIdentityMap(int size, ClassDescriptor descriptor, AbstractSession session, boolean isIsolated)
public CacheKey createCacheKey(java.lang.Object primaryKey, java.lang.Object object, java.lang.Object writeLockValue, long readTime)
AbstractIdentityMap
createCacheKey
in class WeakIdentityMap
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference