public class WeakIdentityMap extends FullIdentityMap
Purpose: A WeakIdentityMap holds all objects referenced by the application only. The weak identity map is similar to the full identity map except for the fact that it allows full garbage collection.
Responsibilities:
| Constructor and Description |
|---|
WeakIdentityMap(int size,
ClassDescriptor descriptor,
AbstractSession session,
boolean isolated) |
| 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 WeakIdentityMap(int size,
ClassDescriptor descriptor,
AbstractSession session,
boolean isolated)
public CacheKey createCacheKey(java.lang.Object primaryKey, java.lang.Object object, java.lang.Object writeLockValue, long readTime)
AbstractIdentityMapcreateCacheKey in class AbstractIdentityMapEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference