43 Pair<Q, E> next = null;
44 long startMillis = System.currentTimeMillis();
46 next =
getPairQueue().poll(pollTimeout.getValue(), TimeUnit.MILLISECONDS);
47 }
catch (InterruptedException ignored) {
51 throw new IllegalStateException(String.format(
"Didn't manage to poll the next pair. Timeout %s",
55 long endMillis = System.currentTimeMillis();
56 if (endMillis - startMillis > 1000) {
58 "It took {} ms to poll the next pair for the load balancer. Possible reason: not enough test data for selected load",
59 endMillis - startMillis);