Set<ServerLocation> getAllLocations() {
      HashSet<ServerLocation> locations = new HashSet<>();
      for (Endpoint endpoint : connectionMap.keySet()) {
        locations.add(endpoint.getLocation());
      }
      return locations;
    }
return a copy of the list of all server locations
geode-core/src/main/java/org/apache/geode/cache/client/internal/QueueManagerImpl.java