set the maximum number of requests for each host to execute concurrently . this limits requests by the url 's host name . note that concurrent requests to a single ip address may still exceed this limit : multiple hostnames may share an ip address or be routed through the same http proxy . if more than maxrequestsperhost requests are in flight when this is invoked , thoserequests will remain in flight . concode_field_sep ExecutorService executorService concode_elem_sep Deque<RealCall> runningSyncCalls concode_elem_sep int maxRequestsPerHost concode_elem_sep Deque<AsyncCall> readyAsyncCalls concode_elem_sep Deque<AsyncCall> runningAsyncCalls concode_elem_sep Runnable idleCallback concode_elem_sep int maxRequests concode_field_sep void cancelAll concode_elem_sep void promoteCalls concode_elem_sep ExecutorService executorService concode_elem_sep List<Call> queuedCalls concode_elem_sep void executed concode_elem_sep void finished concode_elem_sep void finished concode_elem_sep void finished concode_elem_sep void setMaxRequests concode_elem_sep int queuedCallsCount concode_elem_sep int getMaxRequestsPerHost concode_elem_sep void enqueue concode_elem_sep int runningCallsForHost concode_elem_sep List<Call> runningCalls concode_elem_sep int getMaxRequests concode_elem_sep void setIdleCallback concode_elem_sep int runningCallsCount
void function ( int arg0 ) { if ( arg0 < 1 ) { throw new IllegalArgumentException ( "srini_string" + arg0 ) ; } this . maxRequestsPerHost = arg0 ; promoteCalls ( ) ; }