Home
last modified time | relevance | path

Searched refs:throttlePolicy (Results 1 – 1 of 1) sorted by relevance

/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockWebServer.java471 MockResponse throttlePolicy = dispatcher.peek(); in readRequest() local
474 throttledTransfer(throttlePolicy, in, requestBody, contentLength); in readRequest()
484 throttledTransfer(throttlePolicy, in, requestBody, chunkSize); in readRequest()
528 private void throttledTransfer(MockResponse throttlePolicy, InputStream in, OutputStream out, in throttledTransfer() argument
531 int bytesPerPeriod = throttlePolicy.getThrottleBytesPerPeriod(); in throttledTransfer()
532 … long delayMs = throttlePolicy.getThrottleUnit().toMillis(throttlePolicy.getThrottlePeriod()); in throttledTransfer()