Package com.tangosol.util
Class WrapperCollections.ConcurrentWrapperEntrySet<K,V>
- java.lang.Object
-
- com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection<E>
-
- 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
Fields Modifier and Type Field Description protected boolean
m_fStrict
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
Constructors Modifier Constructor Description protected
ConcurrentWrapperEntrySet(Set<Map.Entry<K,V>> set, ReadWriteLock lock, boolean fStrict)
Create an ConcurrentWrapperSet which delegates to the specified Set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<Map.Entry<K,V>>
iterator()
-
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
-
-
-
-
Constructor Detail
-
ConcurrentWrapperEntrySet
protected ConcurrentWrapperEntrySet(Set<Map.Entry<K,V>> set, ReadWriteLock lock, boolean fStrict)
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
-
-