ep.submit(new SubscriptionGenerator(numSubscriptions/numThreads));
}
logger.info("event=started");
try {
ep.shutdown();
ep.awaitTermination(60, TimeUnit.MINUTES);
} catch (InterruptedException ex) {
logger.error("event=failure", ex);
}
long end = System.currentTimeMillis();
logger.info("event=done duration=" + (end-start));