public void endRegisterInterest(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(registerInterestInProgressId, -1);
    int endRegisterInterestId;
    if (timedOut) {
      endRegisterInterestId = registerInterestTimedOutId;
    } else if (failed) {
      endRegisterInterestId = registerInterestFailedId;
    } else {
      endRegisterInterestId = registerInterestId;
    }
    stats.incInt(endRegisterInterestId, 1);
    stats.incLong(registerInterestDurationId, duration);
  }
Records that the specified registerInterest has ended

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