Package com.tangosol.util
Class WrapperCollections.ConcurrentWrapperEntrySet<K,V>
java.lang.Object
com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection<Map.Entry<K,V>>
com.tangosol.util.WrapperCollections.ConcurrentWrapperSet<Map.Entry<K,V>>
com.tangosol.util.WrapperCollections.ConcurrentWrapperEntrySet<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
V>>
- Enclosing class:
WrapperCollections
public static class WrapperCollections.ConcurrentWrapperEntrySet<K,V>
extends WrapperCollections.ConcurrentWrapperSet<Map.Entry<K,V>>
implements Set<Map.Entry<K,V>>
Map Entry Set implementation which uses a ReadWriteLock to manage
concurrent access to the underlying Entry objects.
- Since:
- Coherence 3.7
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
Determines whether or not all of the Entry methods are protected; if set to true, then all Entry methods are protected.Fields inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
m_colDelegate, m_lock, m_lockExclusive, m_lockShared
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConcurrentWrapperEntrySet
(Set<Map.Entry<K, V>> set, ReadWriteLock lock, boolean fStrict) Create an ConcurrentWrapperSet which delegates to the specified Set. -
Method Summary
Methods inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperSet
getDelegate
Methods inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
add, addAll, clear, contains, containsAll, equals, getLock, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
m_fStrict
protected final boolean m_fStrictDetermines whether or not all of the Entry methods are protected; if set to true, then all Entry methods are protected.
-
-
Constructor Details
-
ConcurrentWrapperEntrySet
Create an ConcurrentWrapperSet which delegates to the specified Set.- Parameters:
set
- the Set 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