Class WrapperCollections.ConcurrentWrapperEntry<K,V>
java.lang.Object
com.tangosol.util.WrapperCollections.ConcurrentWrapperEntry<K,V>
- All Implemented Interfaces:
Map.Entry<K,V>
- Enclosing class:
WrapperCollections
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ReadWriteLockThe read/write lock for concurrency control.protected final LockThe exclusive lock for performing read/write operations.protected final LockThe shared lock for performing read operations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionConcurrentWrapperEntry(Map.Entry<K, V> entry) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry.protectedConcurrentWrapperEntry(Map.Entry<K, V> entry, ReadWriteLock lock) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry.protectedConcurrentWrapperEntry(Map.Entry<K, V> entry, ReadWriteLock lock, boolean fStrict) Create an ConcurrentWrapperEntry which delegates to the specified Map Entry. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the Collection to which all operations should be delegated to.getKey()protected ReadWriteLockgetLock()Return the ReadWriteLock that is used to manage concurrent access and modifications to the underlying map.getValue()inthashCode()toString()
-
Field Details
-
m_lock
The read/write lock for concurrency control. -
m_lockExclusive
The exclusive lock for performing read/write operations.
-
-
Constructor Details
-
ConcurrentWrapperEntry
-
ConcurrentWrapperEntry
Create an ConcurrentWrapperEntry which delegates to the specified Map Entry.- Parameters:
entry- the Map Entry to delegate all calls tolock- a read/write lock for concurrency management
-
ConcurrentWrapperEntry
Create an ConcurrentWrapperEntry which delegates to the specified Map Entry.- Parameters:
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() method
-
-
Method Details
-
getKey
-
getValue
-
setValue
-
equals
-
hashCode
-
toString
-
getDelegate
-
getLock
Return the ReadWriteLock that is used to manage concurrent access and modifications to the underlying map.- Returns:
- the ReadWriteLock
-