public class CacheKeyInterceptor extends CacheKey
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, MAX_WAIT_TRIES
deferredLockManagers
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, waitForObject
acquireIfUnownedNoWait, getDeferredLockManager, getDepth, getNumberOfReaders, getNumberOfWritersWaiting, getStack, isBuildObjectOnThreadComplete, isLockedByMergeManager, isNested, putDeferredLock, removeDeferredLockManager, setActiveThread, setIsLockedByMergeManager, setShouldTrackStack, setStack, shouldTrackStack, transitionToDeferredLock
public CacheKeyInterceptor(CacheKey cacheKey)
public void acquire()
public void acquire(boolean forMerge)
public boolean acquireNoWait()
acquireNoWait
in class CacheKey
public boolean acquireIfUnownedNoWait()
acquireIfUnownedNoWait
in class CacheKey
public boolean acquireNoWait(boolean forMerge)
acquireNoWait
in class CacheKey
public void acquireDeferredLock()
acquireDeferredLock
in class CacheKey
public void checkReadLock()
CacheKey
checkReadLock
in class CacheKey
public void checkDeferredLock()
CacheKey
checkDeferredLock
in class CacheKey
public void acquireReadLock()
acquireReadLock
in class CacheKey
public boolean acquireReadLockNoWait()
acquireReadLockNoWait
in class CacheKey
public java.lang.Thread getActiveThread()
getActiveThread
in class CacheKey
public java.lang.Object clone()
CacheKey
public boolean equals(CacheKey key)
CacheKey
public long getLastUpdatedQueryId()
CacheKey
getLastUpdatedQueryId
in class CacheKey
public IdentityMap getOwningMap()
getOwningMap
in class CacheKey
public long getReadTime()
getReadTime
in class CacheKey
public CacheKey getWrappedCacheKey()
getWrappedCacheKey
in class CacheKey
public java.lang.Object getWrapper()
getWrapper
in class CacheKey
public java.lang.Object getWriteLockValue()
getWriteLockValue
in class CacheKey
public int hashCode()
CacheKey
public boolean isAcquired()
ConcurrencyManager
isAcquired
in class ConcurrencyManager
public int getInvalidationState()
CacheKey
getInvalidationState
in class CacheKey
public void release()
public void releaseDeferredLock()
releaseDeferredLock
in class CacheKey
public void releaseReadLock()
releaseReadLock
in class CacheKey
public java.lang.Object removeFromOwningMap()
removeFromOwningMap
in class CacheKey
public void setInvalidationState(int invalidationState)
CacheKey
setInvalidationState
in class CacheKey
public void setLastUpdatedQueryId(long id)
CacheKey
setLastUpdatedQueryId
in class CacheKey
public void setOwningMap(AbstractIdentityMap map)
public void setReadTime(long readTime)
CacheKey
setReadTime
in class CacheKey
public void setWrapper(java.lang.Object wrapper)
setWrapper
in class CacheKey
public void setWriteLockValue(java.lang.Object writeLockValue)
setWriteLockValue
in class CacheKey
public java.lang.String toString()
ConcurrencyManager
public void updateAccess()
CacheKey
updateAccess
in class CacheKey
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference