public void onReceiveComplete() {
    long receiveTimeMs = time.milliseconds() - networkReceive.getReceiveStartTimeInMs();
    metrics.transmissionReceiveAllTime.update(receiveTimeMs);
    double receiveBytesRate =
        networkReceive.getReceivedBytes().sizeRead() / ((double) receiveTimeMs / SystemTime.MsPerSec);
    metrics.transmissionReceiveBytesRate.mark((long) receiveBytesRate);
  }
Actions to be taken on completion of {@link BoundedNettyByteBufReceive} in {@link NetworkReceive}
ambry-network/src/main/java/com/github/ambry/network/Transmission.java