private static void handleAllKeys(final @Nullable LocalRegion region,
      final @NotNull InterestResultPolicy policy,
      final @NotNull ServerConnection servConn) throws IOException {
    final List<Object> keyList = new ArrayList<>(MAXIMUM_CHUNK_SIZE);
    if (region != null) {
      for (Object entryKey : region.keySet(sendTombstonesInRIResults(policy))) {
        appendInterestResponseKey(region, "ALL_KEYS", entryKey, keyList, servConn);
      }
    }
    // Send the last chunk (the only chunk for individual and list keys)
    // always send it back, even if the list is of zero size.
    sendRegisterInterestResponseChunk(region, "ALL_KEYS", keyList, true, servConn);
  }
Process an interest request of type ALL_KEYS

@param region the region
@param policy the policy
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/BaseCommand.java