public void endCloseCQ(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(closeCQInProgressId, -1);
    int endCloseCQId;
    if (timedOut) {
      endCloseCQId = closeCQTimedOutId;
    } else if (failed) {
      endCloseCQId = closeCQFailedId;
    } else {
      endCloseCQId = closeCQId;
    }
    stats.incInt(endCloseCQId, 1);
    stats.incLong(closeCQDurationId, duration);
  }
Records that the specified closeCQ has ended

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