public void endContainsKey(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(containsKeyInProgressId, -1);
    int endContainsKeyId;
    if (timedOut) {
      endContainsKeyId = containsKeyTimedOutId;
    } else if (failed) {
      endContainsKeyId = containsKeyFailedId;
    } else {
      endContainsKeyId = containsKeyId;
    }
    stats.incInt(endContainsKeyId, 1);
    stats.incLong(containsKeyDurationId, duration);
  }
Records that the specified containsKey has ended

@param startTime the value returned by {@link #startContainsKey}.
@param timedOut true if containsKey timed out
@param failed true if containsKey failed
geode-core/src/main/java/org/apache/geode/cache/client/internal/ConnectionStats.java