Advertisement
Guest User

invokeAll

a guest
Aug 31st, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. cache.<String>invokeAll(keys, (entry, args) -> {
  2.     // Do something cool here with the entry...
  3.     return "Hello";
  4. });
  5. cache.<Map<String,String>>future().listen(ia -> {                  
  6.     ia.get().forEach((k,v)->{
  7.         System.out.println("Key: " + k + ", Value: " + v);
  8.     });
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement