Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ConcurrentLinkedQueue (FIFO) instead of ArrayList. #3

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Use ConcurrentLinkedQueue (FIFO) instead of ArrayList. #3

wants to merge 14 commits into from

Conversation

chiflux
Copy link

@chiflux chiflux commented Feb 6, 2018

Use a unbounded FIFO Queue object (ConcurrentLinkedQueue) as backing data structure instead of ArrayList. This extends the current functionality with the possibility to pop/poll (i.e. get and remove) single received messages. Before, one could only clear all messages.
The Queue Interface is more or less a superset of the List interface, so existing code can be adapted very easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant