How to wait for list of futures for 15 minutes( if not completed) and not each future? Below code will wait for each future for 15 minutes.But thats's not what i want
for (CompleteableFuture<String> m : futureList) {
m.get(15, TimeUnit.MINUTES) ;
}
Syso( " Send email") ;