212213214215216217218219220221222
} }); // Wait at most half a second (TODO: Make this configurable) try { final Future<String> poll = ecs.poll(timeout, TimeUnit.MILLISECONDS); if (poll == null) return null; poll.get(timeout, TimeUnit.MILLISECONDS); return newClient;
5253545556575859606162
localArrayList.add(localExecutorCompletionService.submit((Callable)localIterator1.next())); i--; int j = 1; while (true) { Future localFuture1 = localExecutorCompletionService.poll(); if (localFuture1 == null) if (i > 0) { i--; localArrayList.add(localExecutorCompletionService.submit((Callable)localIterator1.next()));
6667686970717273747576
{ if (j == 0) break; if (paramBoolean) { localFuture1 = localExecutorCompletionService.poll(paramLong, TimeUnit.NANOSECONDS); if (localFuture1 == null) throw new TimeoutException(); long l2 = System.nanoTime(); paramLong -= l2 - l1; l1 = l2;