- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for parallelDrainQueue (0.06 seconds)
-
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();
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jul 23 00:58:06 GMT 2025 - 5K bytes - Click Count (0)