public boolean isKey() {
    return (interestType == TP_KEY);
  }
Returns true if this is a key interest type.

@return whether this is a key interest type
geode-core/src/main/java/org/apache/geode/cache/operations/InterestType.java