Interface ReadWriteLockCollection<E>

  • Type Parameters:
    E - The type of elements in the collection.
    All Superinterfaces:
    java.util.Collection<E>, java.lang.Iterable<E>, java.util.concurrent.locks.ReadWriteLock
    All Known Subinterfaces:
    ReadWriteLockSet<E>
    All Known Implementing Classes:
    DecoratorReadWriteLockCollection, DecoratorReadWriteLockSet

    public interface ReadWriteLockCollection<E>
    extends java.util.Collection<E>, java.util.concurrent.locks.ReadWriteLock
    A thread-safe collection that uses a pair of read and write locks to access its data.
    Author:
    Garret Wilson
    • Method Summary

      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.concurrent.locks.ReadWriteLock

        readLock, writeLock