Created
March 27, 2015 21:31
-
-
Save thabofletcher/7f7d0909ac8a3e302826 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IntStream.range(0, items.length) | |
.parallel() | |
.forEach(i -> { | |
String messageBody = messages.get(i).getBody(); | |
try { | |
items[i] = mapper.readValue(messageBody, type); | |
} catch (IOException e) { | |
e.printStackTrace(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment