public void endGatewayBatchSend(long startTime, boolean failed) {
    long duration = getStatTime() - startTime;
    endClientOpSend(duration, failed);
    sendStats.incInt(gatewayBatchSendInProgressId, -1);
    int endGatewayBatchSendId;
    if (failed) {
      endGatewayBatchSendId = gatewayBatchSendFailedId;
    } else {
      endGatewayBatchSendId = gatewayBatchSendId;
    }
    sendStats.incInt(endGatewayBatchSendId, 1);
    sendStats.incLong(gatewayBatchSendDurationId, duration);
  }
Records that the send part of the gatewayBatch has completed

@param startTime the value returned by {@link #startGatewayBatch}.
@param failed true if the send of the gatewayBatch failed
geode-core/src/main/java/org/apache/geode/cache/client/internal/ConnectionStats.java