I'm fairly new to concurrent programming in java. I have a use case where a blocking queue seems the perfect answer to my problem. I only have one problem, from what I read in the jdk javadoc all queue seem to be FIFO, but in my use case it's more complex than that, I need some kind of complex comparator to get the job out the queue. The first in might not be the first out, there are priorities.
Do you know if there is a queue implementation where I can inject a comparator like instance managing the order of jobs?
thanks PS: if there is really easy answer for this, I apologize in advance.