4041424344454647484950
assertEquals(generator.next(), fixedTime * 1000 + i); } })); } executor.shutdown(); executor.awaitTermination(1, TimeUnit.SECONDS); try { Futures.allAsList(futures).get(); } catch (ExecutionException e) { Throwable cause = e.getCause();
4142434445464748495051
allTimestamps.add(generator.next()); } })); } executor.shutdown(); executor.awaitTermination(1, TimeUnit.SECONDS); try { Futures.allAsList(futures).get(); } catch (ExecutionException e) { Throwable cause = e.getCause();
7778798081828384858687
} // Throws ExecutionException if any of the submitted task failed Futures.allAsList(futures).get(); executorService.shutdown(); executorService.awaitTermination(1, TimeUnit.DAYS); } finally { session.logout(); } }
115116117118119120121122123124125