public void endKeySet(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(keySetInProgressId, -1);
    int endKeySetId;
    if (timedOut) {
      endKeySetId = keySetTimedOutId;
    } else if (failed) {
      endKeySetId = keySetFailedId;
    } else {
      endKeySetId = keySetId;
    }
    stats.incInt(endKeySetId, 1);
    stats.incLong(keySetDurationId, duration);
  }
Records that the specified keySet has ended

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