Is there a synchronized Queue
class in Java? I'm looking for something like Vector
(which is synchronized) vs ArrayList
(which is not), but instead of implementing the List
interface, I'm looking for it to implement Queue
.
Note that there is no Collections.synchronizedQueue
method to wrap an unsynchronized queue and make it synchronized.