For sake of abstraction, let's assume that I have a
Map<Double, Collection<Employee>>
where key is salary threshold. Or for people familiar with Google collections it would be as Multimap
I want to do a database lookup for each Employee's salary and if it's less than the salary threshold remove the employee it from the collection. How can I do this in multi-threaded manner, preferably using a fixed threadpool executor?
Again, for google collections savvy folks, if done via Predicate that does a DB lookup and filter the collection, I would greatly appreciate.