Class LinkedBlockingQueue<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
dev.gmitch215.bytebox.util.LinkedBlockingQueue<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, BlockingQueue<E>, Queue<E>

public final class LinkedBlockingQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>
An unbounded queue whose blocking calls never wait.

One fiber runs at a time and nothing can add to the queue while a caller sleeps on it, so a wait that could be satisfied is a wait that never ends. take on an empty queue therefore throws, and poll with a timeout answers at once.

Since:
1.0.3