I am looking for a similar library as ArrayBlockingQueue. Just that, I don't need the thread safe feature (For better performance purpose) offered in it, as it is using ReentrantLock in the offer(E e) method.
What I would like is
- A FIFO queue.
- Has an initial capacity, where pushing new element in will fail if the queue is full.
- Thread safety is not a requirement.
I don't find ArrayQueue in Java standard library. Or, am I missing any classes?