Created
November 12, 2015 19:13
-
-
Save ssmccoy/608eda959ab77e64afe3 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
Arrays.asList(nodes).stream().map((uri) -> | |
CompletableFuture.supplyAsync(() -> | |
new JSONObject(httpClient.get(uri)) | |
).thenApply((json) -> json.get(“status”)) | |
).map((status) -> status.get()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment