- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for parallelDrainQueue (0.07 sec)
-
samples/crawler/src/main/java/okhttp3/sample/Crawler.java
public Crawler(OkHttpClient client, int queueLimit, int hostLimit) { this.client = client; this.queue = new LinkedBlockingQueue<>(queueLimit); this.hostLimit = hostLimit; } private void parallelDrainQueue(int threadCount) { ExecutorService executor = Executors.newFixedThreadPool(threadCount); for (int i = 0; i < threadCount; i++) { executor.execute(() -> { try { drainQueue();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jul 23 00:58:06 UTC 2025 - 5K bytes - Viewed (0)