PriorityBlockingQueue is unbounded, but I need to bound it somehow. What is the best way to achieve that?
PriorityBlockingQueue
For information, the bounded PriorityBlo
PriorityBlo
Have a look at the ForwardingQueue from the Google Collections API. For blocking semantics you could use a Semaphore.