Class SynchronizedQueue<E>

java.lang.Object
org.apache.commons.collections4.collection.SynchronizedCollection<E>
org.apache.commons.collections4.queue.SynchronizedQueue<E>
Type Parameters:
E - the type of the elements in the collection
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Queue<E>

public class SynchronizedQueue<E> extends SynchronizedCollection<E> implements Queue<E>
Decorates another Queue to synchronize its behavior for a multithreaded environment.

Methods are synchronized, then forwarded to the decorated queue. Iterators must be separately synchronized around the loop.

Since:
4.2
See Also: