public void endReadyForEvents(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(readyForEventsInProgressId, -1);
    int endReadyForEventsId;
    if (timedOut) {
      endReadyForEventsId = readyForEventsTimedOutId;
    } else if (failed) {
      endReadyForEventsId = readyForEventsFailedId;
    } else {
      endReadyForEventsId = readyForEventsId;
    }
    stats.incInt(endReadyForEventsId, 1);
    stats.incLong(readyForEventsDurationId, duration);
  }
Records that the specified readyForEvents has ended

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