does anyone know of an (open source) implementation of a bounded concrrent cyclic queue , or an available API class built into android/java ?
the concurrent (not synchronized or lock based) operations i need for this collection are at least enqueue and dequeue , but enqueue can also be enough .
for those who are not sure about the collection i need , here's some more info:
- bounded - has max number of items that can be in it .
- concurrent - allows multiple threads to run operations efficiently without any kind of locking. that's the opposite of synchronized solutions , which only allows a single thread to run operations.
- cyclic - if we put items into a filled collection , the new item will replace the oldest item.
please help