public void endCreateCQ(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(createCQInProgressId, -1);
    int endCreateCQId;
    if (timedOut) {
      endCreateCQId = createCQTimedOutId;
    } else if (failed) {
      endCreateCQId = createCQFailedId;
    } else {
      endCreateCQId = createCQId;
    }
    stats.incInt(endCreateCQId, 1);
    stats.incLong(createCQDurationId, duration);
  }
Records that the specified createCQ has ended

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