Package com.tangosol.util
Class WrapperCollections.ConcurrentWrapperSet<E>
java.lang.Object
com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection<E>
com.tangosol.util.WrapperCollections.ConcurrentWrapperSet<E>
- All Implemented Interfaces:
 Iterable<E>,Collection<E>,Set<E>
- Direct Known Subclasses:
 WrapperCollections.ConcurrentWrapperEntrySet
- Enclosing class:
 WrapperCollections
public static class WrapperCollections.ConcurrentWrapperSet<E>
extends WrapperCollections.ConcurrentWrapperCollection<E>
implements Set<E>
Set implementation which uses a ReadWriteLock to manage concurrent
 access to an underlying Set.
- Since:
 - Coherence 3.7
 
- 
Field Summary
Fields inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
m_colDelegate, m_lock, m_lockExclusive, m_lockShared - 
Constructor Summary
ConstructorsModifierConstructorDescriptionConcurrentWrapperSet(Set<E> set) Create an ConcurrentWrapperSet which delegates to the specified Set.protectedConcurrentWrapperSet(Set<E> set, ReadWriteLock lock) Create an ConcurrentWrapperSet which delegates to the specified Set. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the Set to which all operations should be delegated to.Methods inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
add, addAll, clear, contains, containsAll, equals, getLock, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray 
- 
Constructor Details
- 
ConcurrentWrapperSet
Create an ConcurrentWrapperSet which delegates to the specified Set.- Parameters:
 set- the Set to delegate all calls to
 - 
ConcurrentWrapperSet
Create an ConcurrentWrapperSet which delegates to the specified Set.- Parameters:
 set- the Set to delegate all calls tolock- a read/write lock for concurrency management
 
 - 
 - 
Method Details
- 
getDelegate
Return the Set to which all operations should be delegated to.- Overrides:
 getDelegatein classWrapperCollections.ConcurrentWrapperCollection<E>- Returns:
 - the wrapped Set
 
 
 -