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, resetCacheKeyacquireDeferredLock, acquireLock, acquireLockNoWait, acquireLockWithWait, acquireReadLockOnCacheKey, acquireReadLockOnCacheKeyNoWait, containsKey, get, getAllCacheKeysFromIdentityMapWithEntityPK, getAllFromIdentityMapWithEntityPK, getCacheKeyForLock, getDefaultIdentityMapClass, getDescriptor, getDescriptorClass, getMaxSize, getWrapper, getWriteLockValue, release, remove, setDescriptor, setWrapper, setWriteLockValue, toString, updateMaxSizepublic 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)
AbstractIdentityMapcreateCacheKey in class WeakIdentityMapEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference