@Override
  public void clear() {
    synchronized (this) {
      snapshot = Collections.emptySet();
    }
  }
Create a custom {@link Iterator} implementation for the {@link CopyOnWriteHashSet}
geode-core/src/main/java/org/apache/geode/internal/CopyOnWriteHashSet.java