public void endClear(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(clearInProgressId, -1);
    int endClearId;
    if (timedOut) {
      endClearId = clearTimedOutId;
    } else if (failed) {
      endClearId = clearFailedId;
    } else {
      endClearId = clearId;
    }
    stats.incLong(endClearId, 1L);
    stats.incLong(clearDurationId, duration);
  }
Records that the specified clear has ended

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