Basically I need a data structure to store the temporary chatting messages on the server side. It should be:
bounded: because I don\'t need store too many messa
Did you take a look at ConcurrentLinkedQueue? The page says
This implementation employs an efficient "wait-free" algorithm...
Wait-freedom is one of the strongest guarantee you can obtain....