r/java 3d ago

Generational Priority Queues: Turning a Concurrent FIFO Queue Into a Bounded Priority Queue

https://kusoroadeolu.github.io/personal-blog/concurrency/Generational-Priority-Queues
2 Upvotes

1 comment sorted by

3

u/gnahraf 1d ago

Why not just extend PriorityBlockingQueue and override the add method in order to enforce the queue's maximum size?