dumbster icon indicating copy to clipboard operation
dumbster copied to clipboard

Use ConcurrentLinkedQueue (FIFO) instead of ArrayList.

Open chiflux opened this issue 7 years ago • 0 comments

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.

chiflux avatar Feb 06 '18 22:02 chiflux