Home
last modified time | relevance | path

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

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DDispatcher.java37 private int maxRequests = 64; field in Dispatcher
74 public synchronized void setMaxRequests(int maxRequests) { in setMaxRequests() argument
75 if (maxRequests < 1) { in setMaxRequests()
76 throw new IllegalArgumentException("max < 1: " + maxRequests); in setMaxRequests()
78 this.maxRequests = maxRequests; in setMaxRequests()
83 return maxRequests; in getMaxRequests()
108 if (runningCalls.size() < maxRequests && runningCallsForHost(call) < maxRequestsPerHost) { in enqueue()
146 if (runningCalls.size() >= maxRequests) return; // Already running max capacity. in promoteCalls()
158 if (runningCalls.size() >= maxRequests) return; // Reached max capacity. in promoteCalls()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DDispatcher.java39 private int maxRequests = 64; field in Dispatcher
76 public synchronized void setMaxRequests(int maxRequests) { in setMaxRequests() argument
77 if (maxRequests < 1) { in setMaxRequests()
78 throw new IllegalArgumentException("max < 1: " + maxRequests); in setMaxRequests()
80 this.maxRequests = maxRequests; in setMaxRequests()
85 return maxRequests; in getMaxRequests()
110 if (runningCalls.size() < maxRequests && runningCallsForHost(call) < maxRequestsPerHost) { in enqueue()
148 if (runningCalls.size() >= maxRequests) return; // Already running max capacity. in promoteCalls()
160 if (runningCalls.size() >= maxRequests) return; // Reached max capacity. in promoteCalls()