|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.WrapperCollections.ConcurrentWrapperEntry
public static class WrapperCollections.ConcurrentWrapperEntry
Map Entry implementation which uses a ReadWriteLock to manage concurrent access to an underlying Map Entry.
Field Summary | |
---|---|
protected java.util.concurrent.locks.ReadWriteLock |
m_lock The read/write lock for concurrency control. |
protected java.util.concurrent.locks.Lock |
m_lockExclusive The exclusive lock for performing read/write operations. |
protected java.util.concurrent.locks.Lock |
m_lockShared The shared lock for performing read operations. |
Constructor Summary | |
---|---|
|
WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry. |
protected |
WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry, java.util.concurrent.locks.ReadWriteLock lock) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry. |
protected |
WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry, java.util.concurrent.locks.ReadWriteLock lock, boolean fStrict) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o) |
protected java.util.Map.Entry |
getDelegate() Return the Collection to which all operations should be delegated to. |
java.lang.Object |
getKey() |
protected java.util.concurrent.locks.ReadWriteLock |
getLock() Return the ReadWriteLock that is used to manage concurrent access and modifications to the underlying map. |
java.lang.Object |
getValue() |
int |
hashCode() |
java.lang.Object |
setValue(java.lang.Object value) |
java.lang.String |
toString() |
Field Detail |
---|
protected final java.util.concurrent.locks.ReadWriteLock m_lock
protected final java.util.concurrent.locks.Lock m_lockShared
Note: This field is null if read-only operations are not supposed to be protected, i.e. if the "strict" option is not used.
protected final java.util.concurrent.locks.Lock m_lockExclusive
Constructor Detail |
---|
public WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry)
entry
- the Map Entry to delegate all calls toprotected WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry, java.util.concurrent.locks.ReadWriteLock lock)
entry
- the Map Entry to delegate all calls tolock
- a read/write lock for concurrency managementprotected WrapperCollections.ConcurrentWrapperEntry(java.util.Map.Entry entry, java.util.concurrent.locks.ReadWriteLock lock, boolean fStrict)
entry
- the Map Entry to delegate all calls tolock
- a read/write lock for concurrency managementfStrict
- pass true to protect all Entry methods; false to protect only the setValue() methodMethod Detail |
---|
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.Object getValue()
getValue
in interface java.util.Map.Entry
public java.lang.Object setValue(java.lang.Object value)
setValue
in interface java.util.Map.Entry
public boolean equals(java.lang.Object o)
equals
in interface java.util.Map.Entry
public int hashCode()
hashCode
in interface java.util.Map.Entry
public java.lang.String toString()
protected java.util.Map.Entry getDelegate()
protected java.util.concurrent.locks.ReadWriteLock getLock()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |