21 package com.griddynamics.jagger.invoker;
23 import com.griddynamics.jagger.util.Pair;
24 import java.util.Iterator;
34 public abstract class QueryPoolLoadBalancer<Q, E>
implements LoadBalancer<Q, E> {
43 this.queryProvider = queryProvider;
44 this.endpointProvider = endpointProvider;
48 this.queryProvider = queryProvider;
52 this.endpointProvider = endpointProvider;
62 return getIterableSize(endpointProvider);
67 return getIterableSize(queryProvider);
74 Iterator<Q> iterator = iterable.iterator();
76 while (iterator.hasNext()){