Class AtomicEnumSet<E extends Enum<E>>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.couchbase.client.core.util.AtomicEnumSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class AtomicEnumSet<E extends Enum<E>> extends AbstractSet<E>
A thread-safe cousin of EnumSet that performs well in use cases dominated by reads.

In high-concurrency, mutation-heavy use cases, a standard EnumSet wrapped by Collections.synchronizedSet(Set) might perform better.