On 05/25/2012 11:47 AM, Manik Surtani wrote:
loadAllInto(Consumer engine);
> Yes, when I said Callable I meant exactly what you wrote.
Except in more generic terms. :)
I suppose you specifically meant loadAll(Callable<CacheEntry> c) ?
Yes, but probably "loadAll" is not too appropriate, since "load"
implies
"retention in memory" (at least in my mind), whereas here we just mean
"iterate over the entries and do something with them". Semantics, I
know, but good self-explanatory method names go a long way.
Tristan