public class SoftCacheKey extends WeakCacheKey
Purpose: Container class for storing objects in an IdentityMap. The soft cache key uses a soft 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 |
|---|
SoftCacheKey(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 |
|---|---|
void |
setObject(java.lang.Object object) |
getObjectacquire, 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, waitForObjectpublic SoftCacheKey(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 keypublic void setObject(java.lang.Object object)
setObject in class WeakCacheKeyEclipseLink 2.4.2, "build v20130514-5956486" API Reference