public class WeakCacheKey extends CacheKey
Purpose: Container class for storing objects in an IdentityMap. The weak cache key uses a weak reference to allow garbage collection of its object. The cache key itself however will remain and thus should cleaned up every now and then.
Responsibilities:
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, MAX_WAIT_TRIES
Constructor and Description |
---|
WeakCacheKey(java.lang.Object primaryKey,
java.lang.Object object,
java.lang.Object writeLockValue,
long readTime,
boolean isIsolated)
Initialize the newly allocated instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject() |
void |
setObject(java.lang.Object object) |
acquire, acquire, acquireDeferredLock, acquireIfUnownedNoWait, acquireLock, acquireNoWait, acquireNoWait, acquireReadLock, acquireReadLockNoWait, acquireWithWait, checkDeferredLock, checkReadLock, clone, equals, equals, getInvalidationState, getKey, getLastUpdatedQueryId, getMutex, getOwningMap, getProtectedForeignKeys, getReadTime, getRecord, getTransactionId, getWrappedCacheKey, getWrapper, getWriteLockValue, hashCode, isAcquired, isIsolated, isWrapper, release, releaseDeferredLock, releaseReadLock, removeFromOwningMap, setInvalidationState, setIsolated, setIsWrapper, setKey, setLastUpdatedQueryId, setMutex, setOwningMap, setProtectedForeignKeys, setReadTime, setRecord, setTransactionId, setWrapper, setWriteLockValue, toString, transitionToDeferredLock, updateAccess, waitForObject
public WeakCacheKey(java.lang.Object primaryKey, java.lang.Object object, java.lang.Object writeLockValue, long readTime, boolean isIsolated)
primaryKey
- contains values extracted from the objectwriteLockValue
- is the write lock value, null if optimistic locking not being used for this object.readTime
- the time EclipseLInk read the cache keyEclipseLink 2.4.2, "build v20130514-5956486" API Reference