public class CacheKeyInterceptor
extends org.eclipse.persistence.internal.identitymaps.CacheKey
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.persistence.internal.identitymaps.CacheKey |
wrappedKey |
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, invalidationState, isIsolated, isWrapper, key, lastUpdatedQueryId, mapOwner, MAX_WAIT_TRIES, object, protectedForeignKeys, readTime, record, transactionId, wrapper, writeLockValue| Constructor and Description |
|---|
CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire()
Acquire the lock on the cache key object.
|
void |
acquire(boolean forMerge)
Acquire the lock on the cache key object.
|
void |
acquireDeferredLock()
Acquire the deferred lock.
|
boolean |
acquireIfUnownedNoWait()
Acquire the lock on the cache key object.
|
boolean |
acquireNoWait()
Acquire the lock on the cache key object.
|
boolean |
acquireNoWait(boolean forMerge)
Acquire the lock on the cache key object.
|
void |
acquireReadLock()
Acquire the read lock on the cache key object.
|
boolean |
acquireReadLockNoWait()
Acquire the read lock on the cache key object.
|
void |
checkDeferredLock()
Check the deferred lock on the cache key object.
|
void |
checkReadLock()
Check the read lock on the cache key object.
|
Object |
clone()
INTERNAL:
Clones itself.
|
boolean |
equals(org.eclipse.persistence.internal.identitymaps.CacheKey key)
Determine if the receiver is equal to key.
|
Thread |
getActiveThread()
Return the active thread.
|
int |
getInvalidationState()
INTERNAL:
Return the value of the invalidationState Variable
The return value will be a constant
CHECK_INVALIDATION_POLICY - The Invalidation policy is must be checked for this cache key's sate
CACHE_KEY_INVALID - This cache key has been labeled invalid.
|
Object |
getKey() |
long |
getLastUpdatedQueryId()
INTERNAL:
This method returns the system time in millis seconds at which this object was last refreshed
CR #4365
CR #2698903 ...
|
Object |
getObject() |
org.eclipse.persistence.internal.identitymaps.IdentityMap |
getOwningMap() |
long |
getReadTime()
INTERNAL:
Return the current value of the Read Time variable
|
Record |
getRecord() |
org.eclipse.persistence.internal.identitymaps.CacheKey |
getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.
|
Object |
getWrapper() |
Object |
getWriteLockValue() |
int |
hashCode()
Overrides hashCode() in Object to use the primaryKey's hashCode for storage in data structures.
|
boolean |
isAcquired()
Return if a thread has acquire this manager.
|
void |
release()
Release the lock on the cache key object.
|
void |
releaseDeferredLock()
Release the deferred lock
|
void |
releaseReadLock()
Release the read lock on the cache key object.
|
Object |
removeFromOwningMap()
Removes this cacheKey from the owning map
|
void |
setInvalidationState(int invalidationState)
INTERNAL:
Set the value of the invalidationState Variable
The possible values are from an enumeration of constants
CHECK_INVALIDATION_POLICY - The invalidation policy is must be checked for this cache key's sate
CACHE_KEY_INVALID - This cache key has been labelled invalid.
|
void |
setKey(Object key) |
void |
setLastUpdatedQueryId(long id)
INTERNAL:
This method sets the system time in millis seconds at which this object was last refreshed
CR #4365
CR #2698903 ...
|
void |
setObject(Object object) |
void |
setOwningMap(org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap map) |
void |
setReadTime(long readTime)
INTERNAL:
Set the read time of this cache key
|
void |
setRecord(Record newRecord) |
void |
setWrapper(Object wrapper) |
void |
setWriteLockValue(Object writeLockValue) |
String |
toString()
Print the nested depth.
|
void |
updateAccess()
Notifies that cache key that it has been accessed.
|
acquireLock, acquireWithWait, equals, getProtectedForeignKeys, getTransactionId, hasProtectedForeignKeys, isIsolated, isWrapper, setIsolated, setIsWrapper, setOwningMap, setProtectedForeignKeys, setTransactionId, waitForObjectacquireIfUnownedNoWait, addReadLockToReadLockManager, clearJustificationWhyMethodIsBuildingObjectCompleteReturnsFalse, enrichStringBuildingExplainWhyThreadIsStuckInIsBuildObjectOnThreadComplete, getConcurrencyManagerCreationDate, getConcurrencyManagerId, getDeferredLockManager, getDeferredLockManagers, getDepth, getNumberOfReaders, getNumberOfWritersWaiting, getReadLockManager, getReadLockManagerEnsureResultIsNotNull, getReadLockManagers, getStack, getThreadsToWaitOnAcquire, getThreadsToWaitOnAcquireMethodName, getThreadsToWaitOnAcquireReadLock, getThreadsToWaitOnAcquireReadLockMethodName, getThreadsWaitingToReleaseDeferredLocks, getThreadsWaitingToReleaseDeferredLocksJustification, getTotalNumberOfKeysAcquiredForReading, getTotalNumberOfKeysReleasedForReading, getTotalNumberOfKeysReleasedForReadingBlewUpExceptionDueToCacheKeyHavingReachedCounterZero, initializeDeferredLockManagers, isBuildObjectOnThreadComplete, isLockedByMergeManager, isNested, putDeferredLock, putThreadAsWaitingToAcquireLockForReading, putThreadAsWaitingToAcquireLockForWriting, releaseAllLocksAcquiredByThread, removeDeferredLockManager, removeReadLockFromReadLockManager, removeReadLockManagerIfEmpty, removeThreadNoLongerWaitingToAcquireLockForReading, removeThreadNoLongerWaitingToAcquireLockForWriting, setActiveThread, setDepth, setIsLockedByMergeManager, setJustificationWhyMethodIsBuildingObjectCompleteReturnsFalse, setNumberOfReaders, setNumberOfWritersWaiting, setShouldTrackStack, setStack, shouldTrackStack, transitionToDeferredLockpublic CacheKeyInterceptor(org.eclipse.persistence.internal.identitymaps.CacheKey cacheKey)
public void acquire()
acquire in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquire(boolean forMerge)
acquire in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireNoWait()
acquireNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireIfUnownedNoWait()
acquireIfUnownedNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireNoWait(boolean forMerge)
acquireNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquireDeferredLock()
acquireDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void checkReadLock()
org.eclipse.persistence.internal.identitymaps.CacheKeycheckReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void checkDeferredLock()
org.eclipse.persistence.internal.identitymaps.CacheKeycheckDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void acquireReadLock()
acquireReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean acquireReadLockNoWait()
acquireReadLockNoWait in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Thread getActiveThread()
getActiveThread in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object clone()
org.eclipse.persistence.internal.identitymaps.CacheKeyclone in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean equals(org.eclipse.persistence.internal.identitymaps.CacheKey key)
org.eclipse.persistence.internal.identitymaps.CacheKeyequals in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic long getLastUpdatedQueryId()
org.eclipse.persistence.internal.identitymaps.CacheKeygetLastUpdatedQueryId in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object getKey()
getKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object getObject()
getObject in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic org.eclipse.persistence.internal.identitymaps.IdentityMap getOwningMap()
getOwningMap in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic long getReadTime()
getReadTime in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Record getRecord()
getRecord in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic org.eclipse.persistence.internal.identitymaps.CacheKey getWrappedCacheKey()
getWrappedCacheKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object getWrapper()
getWrapper in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object getWriteLockValue()
getWriteLockValue in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic int hashCode()
org.eclipse.persistence.internal.identitymaps.CacheKeyhashCode in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic boolean isAcquired()
org.eclipse.persistence.internal.helper.ConcurrencyManagerisAcquired in class org.eclipse.persistence.internal.helper.ConcurrencyManagerpublic int getInvalidationState()
org.eclipse.persistence.internal.identitymaps.CacheKeygetInvalidationState in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void release()
release in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void releaseDeferredLock()
releaseDeferredLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void releaseReadLock()
releaseReadLock in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic Object removeFromOwningMap()
removeFromOwningMap in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setInvalidationState(int invalidationState)
org.eclipse.persistence.internal.identitymaps.CacheKeysetInvalidationState in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setLastUpdatedQueryId(long id)
org.eclipse.persistence.internal.identitymaps.CacheKeysetLastUpdatedQueryId in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setKey(Object key)
setKey in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setObject(Object object)
setObject in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setOwningMap(org.eclipse.persistence.internal.identitymaps.AbstractIdentityMap map)
public void setReadTime(long readTime)
org.eclipse.persistence.internal.identitymaps.CacheKeysetReadTime in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setRecord(Record newRecord)
setRecord in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setWrapper(Object wrapper)
setWrapper in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void setWriteLockValue(Object writeLockValue)
setWriteLockValue in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic String toString()
org.eclipse.persistence.internal.helper.ConcurrencyManagertoString in class org.eclipse.persistence.internal.identitymaps.CacheKeypublic void updateAccess()
org.eclipse.persistence.internal.identitymaps.CacheKeyupdateAccess in class org.eclipse.persistence.internal.identitymaps.CacheKeyCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.