This question is related to Execute multiple queries in parallel via Streams which suggests that CompletableFuture could be used together with Stream for making
CompletableFuture