Searched refs:bytesPerPeriod (Results 1 – 4 of 4) sorted by relevance
236 public MockResponse throttleBody(int bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() argument237 this.throttleBytesPerPeriod = bytesPerPeriod; in throttleBody()
531 int bytesPerPeriod = throttlePolicy.getThrottleBytesPerPeriod(); in throttledTransfer() local535 for (int b = 0; b < bytesPerPeriod; ) { in throttledTransfer()536 int toRead = (int) Math.min(Math.min(buffer.length, limit), bytesPerPeriod - b); in throttledTransfer()
202 public MockResponse throttleBody(long bytesPerPeriod, long period, TimeUnit unit) { in throttleBody() argument203 this.throttleBytesPerPeriod = bytesPerPeriod; in throttleBody()
758 long bytesPerPeriod = policy.getThrottleBytesPerPeriod();767 for (int b = 0; b < bytesPerPeriod; ) {769 long toRead = Math.min(byteCount, bytesPerPeriod - b);