Searched refs:maxRequests (Results 1 – 2 of 2) sorted by relevance
37 private int maxRequests = 64; field in Dispatcher74 public synchronized void setMaxRequests(int maxRequests) { in setMaxRequests() argument75 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()
39 private int maxRequests = 64; field in Dispatcher76 public synchronized void setMaxRequests(int maxRequests) { in setMaxRequests() argument77 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()