public void endPrimaryAck(long startTime, boolean timedOut, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOp(duration, timedOut, failed);
    stats.incInt(primaryAckInProgressId, -1);
    int endPrimaryAckId;
    if (timedOut) {
      endPrimaryAckId = primaryAckTimedOutId;
    } else if (failed) {
      endPrimaryAckId = primaryAckFailedId;
    } else {
      endPrimaryAckId = primaryAckId;
    }
    stats.incInt(endPrimaryAckId, 1);
    stats.incLong(primaryAckDurationId, duration);
  }
Records that the specified primaryAck has ended

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