Class BlockingSet<E>

java.lang.Object
com.atlassian.bamboo.concurrent.BlockingSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class BlockingSet<E> extends Object implements Set<E>
It fulfills the general Set contract, with one important difference: if an equal element already exists, insertion of an element is blocked until it can be inserted. The implementation is HashSet backed and thread-safe.