You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by javadevmtl <ja...@gmail.com> on 2015/08/31 19:34:39 UTC
How to get back async value for invokeAll
Hi, fairly new to lambdas and stuff like that. So just wondering how would I
get back my values from an cache.invokeAll()?
http://pastebin.com/JxRd8G7S
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-back-async-value-for-invokeAll-tp1218.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: How to get back async value for invokeAll
Posted by vkulichenko <va...@gmail.com>.
Looks correct in case you really want to do this asynchronously. Otherwise
you can simply use the map of results returned from invokeAll() method.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-back-async-value-for-invokeAll-tp1218p1227.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: How to get back async value for invokeAll
Posted by javadevmtl <ja...@gmail.com>.
This seems to do the trick...
cache.<Map<String,CacheInvokeResult<String>>>future().listen(ia -> {
ia.get().forEach((k,v)->{
System.out.println("Result Key: " + k + ", Value: " + v.get());
});
});
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-back-async-value-for-invokeAll-tp1218p1219.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.