Class WrapperCollections.ConcurrentWrapperCollection<E>

    • Field Detail

      • 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 Detail

      • 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