public class CacheKeyInterceptor extends CacheKey
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, MAX_WAIT_TRIESdeferredLockManagers| Constructor and Description |
|---|
CacheKeyInterceptor(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.
|
java.lang.Object |
clone()
INTERNAL:
Clones itself.
|
boolean |
equals(CacheKey key)
Determine if the receiver is equal to key.
|
java.lang.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.
|
java.lang.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 ...
|
java.lang.Object |
getObject() |
IdentityMap |
getOwningMap() |
long |
getReadTime()
INTERNAL:
Return the current value of the Read Time variable
|
Record |
getRecord() |
CacheKey |
getWrappedCacheKey()
If a Wrapper subclasses this CacheKey this method will be used to unwrap the cache key.
|
java.lang.Object |
getWrapper() |
java.lang.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.
|
java.lang.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(java.lang.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(java.lang.Object object) |
void |
setOwningMap(AbstractIdentityMap map) |
void |
setReadTime(long readTime)
INTERNAL:
Set the read time of this cache key
|
void |
setRecord(Record newRecord) |
void |
setWrapper(java.lang.Object wrapper) |
void |
setWriteLockValue(java.lang.Object writeLockValue) |
java.lang.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, getDeferredLockManager, getDepth, getNumberOfReaders, getNumberOfWritersWaiting, getStack, isBuildObjectOnThreadComplete, isLockedByMergeManager, isNested, putDeferredLock, removeDeferredLockManager, setActiveThread, setIsLockedByMergeManager, setShouldTrackStack, setStack, shouldTrackStack, transitionToDeferredLockpublic CacheKeyInterceptor(CacheKey cacheKey)
public void acquire()
public void acquire(boolean forMerge)
public boolean acquireNoWait()
acquireNoWait in class CacheKeypublic boolean acquireIfUnownedNoWait()
acquireIfUnownedNoWait in class CacheKeypublic boolean acquireNoWait(boolean forMerge)
acquireNoWait in class CacheKeypublic void acquireDeferredLock()
acquireDeferredLock in class CacheKeypublic void checkReadLock()
CacheKeycheckReadLock in class CacheKeypublic void checkDeferredLock()
CacheKeycheckDeferredLock in class CacheKeypublic void acquireReadLock()
acquireReadLock in class CacheKeypublic boolean acquireReadLockNoWait()
acquireReadLockNoWait in class CacheKeypublic java.lang.Thread getActiveThread()
getActiveThread in class CacheKeypublic java.lang.Object clone()
CacheKeypublic boolean equals(CacheKey key)
CacheKeypublic long getLastUpdatedQueryId()
CacheKeygetLastUpdatedQueryId in class CacheKeypublic IdentityMap getOwningMap()
getOwningMap in class CacheKeypublic long getReadTime()
getReadTime in class CacheKeypublic CacheKey getWrappedCacheKey()
getWrappedCacheKey in class CacheKeypublic java.lang.Object getWrapper()
getWrapper in class CacheKeypublic java.lang.Object getWriteLockValue()
getWriteLockValue in class CacheKeypublic int hashCode()
CacheKeypublic boolean isAcquired()
ConcurrencyManagerisAcquired in class ConcurrencyManagerpublic int getInvalidationState()
CacheKeygetInvalidationState in class CacheKeypublic void release()
public void releaseDeferredLock()
releaseDeferredLock in class CacheKeypublic void releaseReadLock()
releaseReadLock in class CacheKeypublic java.lang.Object removeFromOwningMap()
removeFromOwningMap in class CacheKeypublic void setInvalidationState(int invalidationState)
CacheKeysetInvalidationState in class CacheKeypublic void setLastUpdatedQueryId(long id)
CacheKeysetLastUpdatedQueryId in class CacheKeypublic void setOwningMap(AbstractIdentityMap map)
public void setReadTime(long readTime)
CacheKeysetReadTime in class CacheKeypublic void setWrapper(java.lang.Object wrapper)
setWrapper in class CacheKeypublic void setWriteLockValue(java.lang.Object writeLockValue)
setWriteLockValue in class CacheKeypublic java.lang.String toString()
ConcurrencyManagerpublic void updateAccess()
CacheKeyupdateAccess in class CacheKeyEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference