public void start() {
   while (statementIterator.hasNext()) {
     final CQLStatement next = statementIterator.next();
     Runnable r =
         new Runnable() {
           @Override
           public void run() {
             handle(next);
           }
         };
     executorService.execute(r);
   }
 }
 public StatementIteratorConsumer(
     BoundedCQLStatementIterator statementIterator, CQLExecutor cqlExecutor, long timeout) {
   this.statementIterator = statementIterator;
   this.cqlExecutor = cqlExecutor;
   this.timeout = timeout;
   this.shutdownLatch = new CountDownLatch((new Long(statementIterator.size())).intValue());
   logger.trace("Created consumer with countdown {}", shutdownLatch.getCount());
 }