Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConcurrentHashMap (0.18 sec)

  1. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

      private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>());
      private final LinkedBlockingQueue<HttpUrl> queue = new LinkedBlockingQueue<>();
      private final ConcurrentHashMap<String, AtomicInteger> hostnames = new ConcurrentHashMap<>();
    
      public Crawler(OkHttpClient client) {
        this.client = client;
      }
    
      private void parallelDrainQueue(int threadCount) {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Aug 12 07:26:27 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocksProxy.kt

    import java.net.ProtocolException
    import java.net.Proxy
    import java.net.ServerSocket
    import java.net.Socket
    import java.net.SocketException
    import java.util.Collections
    import java.util.concurrent.ConcurrentHashMap
    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.logging.Level
    import java.util.logging.Logger
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top