Class WrapperCollections.ConcurrentWrapperCollection<E>

java.lang.Object
com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>
Direct Known Subclasses:
WrapperCollections.ConcurrentWrapperSet
Enclosing class:
WrapperCollections

public static class WrapperCollections.ConcurrentWrapperCollection<E> extends Object implements Collection<E>
Collection implementation which uses a ReadWriteLock to manage concurrent access to an underlying Collection.
Since:
Coherence 3.7
  • Field Details

    • m_colDelegate

      protected final Collection<E> m_colDelegate
      The Collection to which this wrapper delegates.
    • m_lock

      protected final ReadWriteLock m_lock
      The read/write lock for concurrency control.
    • m_lockShared

      protected final Lock m_lockShared
      The shared lock for performing read operations.
    • m_lockExclusive

      protected final Lock m_lockExclusive
      The exclusive lock for performing read/write operations.
  • Constructor Details

    • ConcurrentWrapperCollection

      public ConcurrentWrapperCollection(Collection<E> col)
      Create an ConcurrentWrapperCollection which delegates to the specified Collection.
      Parameters:
      col - the Collection to delegate all calls to
    • ConcurrentWrapperCollection

      protected ConcurrentWrapperCollection(Collection<E> col, ReadWriteLock lock)
      Create an ConcurrentWrapperCollection which delegates to the specified Collection.
      Parameters:
      col - the Collection to delegate all calls to
      lock - a read/write lock for concurrency management
  • Method Details