|
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.ConcurrentWrapperCollection
public static class WrapperCollections.ConcurrentWrapperCollection
Collection implementation which uses a ReadWriteLock to manage concurrent access to an underlying Collection.
| Field Summary | |
|---|---|
protected java.util.concurrent.locks.ReadWriteLock |
m_lockThe read/write lock for concurrency control. |
protected java.util.concurrent.locks.Lock |
m_lockExclusiveThe exclusive lock for performing read/write operations. |
protected java.util.concurrent.locks.Lock |
m_lockSharedThe shared lock for performing read operations. |
| Constructor Summary | |
|---|---|
|
WrapperCollections.ConcurrentWrapperCollection(java.util.Collection col)Create an ConcurrentWrapperCollection which delegates to the specified Collection. |
protected |
WrapperCollections.ConcurrentWrapperCollection(java.util.Collection col, java.util.concurrent.locks.ReadWriteLock lock)Create an ConcurrentWrapperCollection which delegates to the specified Collection. |
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
boolean |
equals(java.lang.Object oOther) |
protected java.util.Collection |
getDelegate()Return the Collection to which all operations should be delegated to. |
protected java.util.concurrent.locks.ReadWriteLock |
getLock()Return the ReadWriteLock that is used to manage concurrent access and modifications to the underlying map. |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
retainAll(java.util.Collection c) |
int |
size() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
java.lang.String |
toString() |
| Field Detail |
|---|
protected final java.util.concurrent.locks.ReadWriteLock m_lock
protected final java.util.concurrent.locks.Lock m_lockShared
protected final java.util.concurrent.locks.Lock m_lockExclusive
| Constructor Detail |
|---|
public WrapperCollections.ConcurrentWrapperCollection(java.util.Collection col)
col - the Collection to delegate all calls to
protected WrapperCollections.ConcurrentWrapperCollection(java.util.Collection col,
java.util.concurrent.locks.ReadWriteLock lock)
col - the Collection to delegate all calls tolock - a read/write lock for concurrency management| Method Detail |
|---|
protected java.util.Collection getDelegate()
protected java.util.concurrent.locks.ReadWriteLock getLock()
public int size()
size in interface java.util.Collectionpublic boolean isEmpty()
isEmpty in interface java.util.Collectionpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collectionpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.Collectionpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.Collectionpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collectionpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collectionpublic void clear()
clear in interface java.util.Collectionpublic boolean equals(java.lang.Object oOther)
equals in interface java.util.Collectionpublic int hashCode()
hashCode in interface java.util.Collectionpublic java.lang.String toString()
|
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 | |||||||