Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for incrementAndGet (0.11 sec)

  1. guava-tests/test/com/google/common/cache/TestingRemovalListeners.java

        private final AtomicInteger count = new AtomicInteger();
        private volatile RemovalNotification<K, V> lastNotification;
    
        @Override
        public void onRemoval(RemovalNotification<K, V> notification) {
          count.incrementAndGet();
          lastNotification = notification;
        }
    
        public int getCount() {
          return count.get();
        }
    
        public K getLastEvictedKey() {
          return lastNotification.getKey();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java

            this.activeThreadCount = activeThreadCount;
        }
    
        public long getAccessCount() {
            return accessCount.get();
        }
    
        public long incrementAndGetAccessCount() {
            return accessCount.incrementAndGet();
        }
    
        public long decrementAndGetAccessCount() {
            return accessCount.decrementAndGet();
        }
    
        public CrawlerStatus getStatus() {
            return status;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

        AtomicInteger hostnameCount = new AtomicInteger();
        AtomicInteger previous = hostnames.putIfAbsent(url.host(), hostnameCount);
        if (previous != null) hostnameCount = previous;
        if (hostnameCount.incrementAndGet() > 100) return;
    
        Request request = new Request.Builder()
            .url(url)
            .build();
        try (Response response = client.newCall(request).execute()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() {
                if (currentFuture.get().set("set")) {
                  numSuccessfulSetCalls.incrementAndGet();
                }
                awaitUnchecked(barrier);
                return null;
              }
            };
        Callable<@Nullable Void> completeExceptionallyRunnable =
            new Callable<@Nullable Void>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        Multiset<String> multiset =
            new NoRemoveMultiset<String>() {
              @Override
              public int add(String element, int occurrences) {
                addCalls.incrementAndGet();
                return super.add(element, occurrences);
              }
            };
        ImmutableMultiset<String> adds =
            new ImmutableMultiset.Builder<String>().addCopies("x", 10).build();
        multiset.addAll(adds);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

                .build(
                    new CacheLoader<Integer, Integer>() {
                      @Override
                      public Integer load(Integer from) {
                        return (int) misses.incrementAndGet();
                      }
                    });
    
        // To start, fill up the cache.
        // Each miss both increments the counter and causes the map to grow by one,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

              TrustedListenableFutureTask.create(
                  new Callable<Integer>() {
                    @Override
                    public Integer call() {
                      return counter.incrementAndGet();
                    }
                  });
          final CyclicBarrier barrier = new CyclicBarrier(numThreads + 1);
          Runnable wrapper =
              new Runnable() {
                @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

            if (asyncCall.callsPerHost.get() >= this.maxRequestsPerHost) continue // Host max capacity.
    
            i.remove()
            asyncCall.callsPerHost.incrementAndGet()
            executableCalls.add(asyncCall)
            runningAsyncCalls.add(asyncCall)
          }
          isRunning = runningCallsCount() > 0
        }
    
        // Avoid resubmitting if we can't logically progress
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jun 20 14:10:53 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/ConcurrencyTest.java

                    out.write(0xAA);
                    this.writeCount.incrementAndGet();
                    this.completed = true;
                }
                catch ( IOException e ) {
                    if ( e instanceof SmbException && ( (SmbException) e ).getNtStatus() == NtStatus.NT_STATUS_SHARING_VIOLATION ) {
                        this.failCount.incrementAndGet();
                        this.completed = true;
                        return;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/SocksProxy.kt

          val threadName = "SocksProxy ${serverSocket!!.localPort}"
          Thread.currentThread().name = threadName
          try {
            while (true) {
              val socket = serverSocket!!.accept()
              connectionCount.incrementAndGet()
              service(socket)
            }
          } catch (e: SocketException) {
            logger.info("$threadName done accepting connections: ${e.message}")
          } catch (e: IOException) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top