0

I need a data structure that should be a concurrent and unique queue. ConcurrentLinkedQueue will solve my problem but I need to add unique elements in the queue(FIFO). Do I have to combine both Set and ConcurrentLinkedQueue in order to achieve this?

ankit.vishen
  • 1,100
  • 15
  • 29

1 Answers1

0

Have you tried PriorityBlockingQueue ??

Also you can take a look at Which concurrent Queue implementation should I use in Java?

Pablo Gutierrez
  • 112
  • 1
  • 4