docs: public void setStallThreshold(int periodSecs, int bytesPerSecond) {
          lock.lock();
          try {
              stallPeriodSeconds = periodSecs;
              stallMinSpeedBytesSec = bytesPerSecond;
          } finally {
              lock.unlock();
          }
      }