Interface MultiReaderBag<T>

All Superinterfaces:
Bag<T>, Collection<T>, InternalIterable<T>, Iterable<T>, MutableBag<T>, MutableBagIterable<T>, MutableCollection<T>, RichIterable<T>, UnsortedBag<T>
All Known Implementing Classes:
MultiReaderHashBag

public interface MultiReaderBag<T> extends MutableBag<T>
A MultiReaderBag provides thread-safe iteration for a bag through methods withReadLockAndDelegate() and withWriteLockAndDelegate().
Since:
10.0.
  • Method Details

    • withReadLockAndDelegate

      void withReadLockAndDelegate(Procedure<? super MutableBag<T>> procedure)
    • withWriteLockAndDelegate

      void withWriteLockAndDelegate(Procedure<? super MutableBag<T>> procedure)