public class CacheKeyInterceptor extends CacheKey
CACHE_KEY_INVALID, CHECK_INVALIDATION_POLICY, MAX_WAIT_TRIES| 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.
|
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 ...
|
ConcurrencyManager |
getMutex()
Return the concurrency manager.
|
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 the lock is acquired
|
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.util.Vector 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 |
setMutex(ConcurrencyManager mutex)
Set the concurrency manager.
|
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() |
void |
updateAccess()
Notifies that cache key that it has been accessed.
|
acquireLock, acquireWithWait, equals, getProtectedForeignKeys, getTransactionId, isIsolated, isWrapper, setIsolated, setIsWrapper, setKey, setOwningMap, setProtectedForeignKeys, setTransactionId, transitionToDeferredLock, waitForObjectpublic 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.Object clone()
CacheKeypublic boolean equals(CacheKey key)
CacheKeypublic long getLastUpdatedQueryId()
CacheKeygetLastUpdatedQueryId in class CacheKeypublic ConcurrencyManager getMutex()
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()
CacheKeyisAcquired in class CacheKeypublic 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 setKey(java.util.Vector key)
public void setMutex(ConcurrencyManager mutex)
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 void updateAccess()
CacheKeyupdateAccess in class CacheKeyEclipseLink 2.4.2, "build v20130514-5956486" API Reference