public void endCloseCon(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(closeConInProgressId, -1);
    int endCloseConId;
    if (timedOut) {
      endCloseConId = closeConTimedOutId;
    } else if (failed) {
      endCloseConId = closeConFailedId;
    } else {
      endCloseConId = closeConId;
    }
    stats.incInt(endCloseConId, 1);
    stats.incLong(closeConDurationId, duration);
  }
Records that the specified closeCon has ended

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