|
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_lock The read/write lock for concurrency control. |
protected java.util.concurrent.locks.Lock |
m_lockExclusive The exclusive lock for performing read/write operations. |
protected java.util.concurrent.locks.Lock |
m_lockShared The 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 toprotected 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 managementMethod Detail |
---|
protected java.util.Collection getDelegate()
protected java.util.concurrent.locks.ReadWriteLock getLock()
public int size()
size
in interface java.util.Collection
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public void clear()
clear
in interface java.util.Collection
public boolean equals(java.lang.Object oOther)
equals
in interface java.util.Collection
public int hashCode()
hashCode
in interface java.util.Collection
public 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 |