|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.SegmentedHashMap.Entry
com.tangosol.util.SegmentedConcurrentMap.LockableEntry
protected class SegmentedConcurrentMap.LockableEntry
LockableEntry is an Entry that supports locking. See ConcurrentMap
| Field Summary | |
|---|---|
protected short |
m_cContendThe number of threads that are waiting to lock this Entry. |
protected short |
m_cLockThe lock count (number of times the "lock()" was called by the locking thread). |
protected java.lang.Object |
m_oLockHolderThe lock holder object. |
| Fields inherited from class com.tangosol.util.SegmentedHashMap.Entry |
|---|
m_eNext, m_nHash, m_oKey, m_oValue |
| Constructor Summary | |
|---|---|
protected |
SegmentedConcurrentMap.LockableEntry(java.lang.Object oKey, java.lang.Object oValue, int nHash)Construct a LockableEntry for the given entry. |
| Method Summary | |
|---|---|
protected boolean |
isContended()Is there contention (a thread waiting) to lock this Entry? |
protected boolean |
isLocked()Is this entry Locked? |
protected boolean |
isSynthetic()Is this Entry synthetic? |
protected void |
lock(java.lang.Object oHolder)Lock this entry for the specified lock holder. |
java.lang.String |
toString()Render the map entry as a String. |
protected boolean |
unlock()Unlock this entry. |
protected long |
waitForNotify(long cWait)Wait for this LockableEntry to be notified that it has been freed by the previous lock-holder. |
| Methods inherited from class com.tangosol.util.SegmentedHashMap.Entry |
|---|
equals, getKey, getValue, getValueInternal, hashCode, nextEntry, nextEntry, setNext, setValue, setValueInternal |
| Field Detail |
|---|
protected volatile java.lang.Object m_oLockHolder
protected short m_cLock
protected volatile short m_cContend
| Constructor Detail |
|---|
protected SegmentedConcurrentMap.LockableEntry(java.lang.Object oKey,
java.lang.Object oValue,
int nHash)
oKey - key with which the specified value is to be associatedoValue - value to be associated with the specified keynHash - the hashCode for the specified key| Method Detail |
|---|
protected long waitForNotify(long cWait)
cWait - the number of milliseconds to wait for notification to obtain a lock; pass zero to return immediately; pass -1 to block the calling thread until the lock could be obtainedprotected void lock(java.lang.Object oHolder)
oHolder - the holder of this lockprotected boolean unlock()
public java.lang.String toString()
toString in class SegmentedHashMap.Entryprotected boolean isLocked()
protected boolean isContended()
protected boolean isSynthetic()
isSynthetic in class SegmentedHashMap.Entry
|
Oracle® Coherence Java API Reference Release 3.6.1.0 E18814-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||