21 package com.griddynamics.jagger.invoker;
23 import com.griddynamics.jagger.util.Pair;
25 import java.util.Iterator;
37 public class SimpleLoadBalancer<Q, E>
implements LoadBalancer<Q, E> {
38 private final Q query;
39 private final E endpoint;
43 this.endpoint = endpoint;
53 return new Iterator<Pair<Q, E>>() {
55 public boolean hasNext() {
60 public Pair<Q, E> next() {
61 return Pair.of(query, endpoint);
65 public void remove() {
66 throw new UnsupportedOperationException(
"Read only iterator");