code: public void setLimits(long length, long milliseconds, long rateKBps) {
          maxLength = (length>0) ? length : Long.MAX_VALUE;
          timeoutMs = (milliseconds>0) ? milliseconds : Long.MAX_VALUE;
          maxRateBytesPerMs = (rateKBps>0) ? rateKBps*1024/1000 : Long.MAX_VALUE;
      }
docs: Set limits on length, time, and rate to enforce.
  
  @param length
  @param milliseconds
  @param rateKBps