I'd like to have one BlockingMap data structure which is very similar to BlockingQueue. The take method of BlockingQueue will wait there until element is available. I'd like the get method of BlockingMap to wait there until the corresponding key is available? Is this kind of data structure available that I can use ?
I have simply used BlockingQueue<Map.Entry<K,V>>
in the past. But recently, I came across this Blocking Map for Java. Haven't used it myself, though.