Class AbstractConcurrentSet<T>

java.lang.Object
net.engio.mbassy.common.AbstractConcurrentSet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>
Direct Known Subclasses:
StrongConcurrentSet, WeakConcurrentSet

public abstract class AbstractConcurrentSet<T> extends Object implements Set<T>
This data structure is optimized for non-blocking reads even when write operations occur. Running read iterators will not be affected by add operations since writes always insert at the head of the structure. Remove operations can affect any running iterator such that a removed element that has not yet been reached by the iterator will not appear in that iterator anymore.