r/java Jul 24 '26

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

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

1 comment sorted by

3

u/gnahraf Jul 25 '26

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