private void visitEntries(final EntryVisitor knock) {
    visitBuckets((bucketId, buk) -> {
      try {
        ((LocalRegion) buk).waitForData();
        for (final Object o : buk.entrySet()) {
          knock.visit(bucketId, (Entry) o);
        }
      } catch (CacheRuntimeException ignore) {
      }
      knock.finishedVisiting();
    });
  }
Test class and method for visiting Entries NOTE: This class will only give a partial view if a
visited bucket is moved by a rebalance while a visit is in progress on that bucket.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java