set a callback to be invoked each time the dispatcher becomes idle when the number of running calls returns to zero . note : the time at which a @linkplain call call is considered idle is different dependingon whether it was run @linkplain call #enqueue callback asynchronously or @linkplain call #execute synchronously . asynchronous calls become idle after the callback #onresponse onresponse or callback #onfailure onfailure callback hasreturned . synchronous calls become idle once call #execute execute returns . thismeans that if you are doing synchronous calls the network layer will not truly be idle until every returned response has been closed . 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 void setMaxRequestsPerHost concode_elem_sep int getMaxRequests concode_elem_sep int runningCallsCount
void function ( Runnable arg0 ) { this . idleCallback = arg0 ; }