@Override
    public boolean hasNext() {
      return currentIndex < locators.size();
    }
An iterator which iterates over all the controllers, starting at the last known good
controller.
geode-core/src/main/java/org/apache/geode/cache/client/internal/LocatorList.java