public void clearKeysOfInterest(final @NotNull Object key,
      final @NotNull InterestType interestType,
      final @NotNull InterestResultPolicy interestResultPolicy) {
    switch (interestType) {
      case FILTER_CLASS:
        clearViaFilterClass((String) key);
        break;
      case KEY:
        if (key instanceof String && key.equals("ALL_KEYS")) {
          clearViaRegEx(".*");
        } else if (key instanceof List) {
          clearViaList((List) key);
        } else {
          localDestroyNoCallbacks(key);
        }
        break;
      case OQL_QUERY:
        clearViaQuery((String) key);
        break;
      case REGULAR_EXPRESSION:
        clearViaRegEx((String) key);
        break;
      default:
        throw new InternalGemFireError(
            "unknown interest type");
    }
  }
Remove values in local cache before registering interest

TODO: interestResultPolicy is never used

@param key the interest key
@param interestType the interest type from {@link InterestType}
@param interestResultPolicy the policy from {@link InterestResultPolicy}
geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java