public void clearInterestFor(Object inputClientID) {
    Long clientID;
    if (inputClientID instanceof Long) {
      clientID = (Long) inputClientID;
    } else {
      Map<Object, Long> cids = clientMap.realIDs;
      clientID = cids.get(inputClientID);
      if (clientID == null) {
        // haven't seen this client yet
        return;
      }
    }
    synchronized (interestListLock) {
      {
        Set akc = getAllKeyClients();
        akc.remove(clientID);
      }
      {
        Set akci = getAllKeyClientsInv();
        akci.remove(clientID);
      }
      {
        Map<Object, Set> keys = getKeysOfInterest();
        keys.remove(clientID);
      }
      {
        Map<Object, Set> keys = getKeysOfInterestInv();
        keys.remove(clientID);
      }
      {
        Map<Object, Map<Object, Pattern>> pats = getPatternsOfInterest();
        pats.remove(clientID);
      }
      {
        Map<Object, Map<Object, Pattern>> pats = getPatternsOfInterestInv();
        pats.remove(clientID);
      }
      {
        Map<Object, Map> filters = getFiltersOfInterest();
        filters.remove(clientID);
      }
      {
        Map<Object, Map> filters = getFiltersOfInterestInv();
        filters.remove(clientID);
      }
      if (clientMap != null) {
        clientMap.removeIDMapping(clientID);
      }
      if (region != null && isLocalProfile) {
        sendProfileOperation(clientID, operationType.CLEAR, null, false);
      }
    }
  }
removes all interest for the given identifier
geode-core/src/main/java/org/apache/geode/internal/cache/FilterProfile.java