Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 119 for incrementAndGet (0.08 seconds)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          val request =
            readRequest(
              socket = socket,
              connectionIndex = connectionIndex,
              exchangeIndex = nextExchangeIndex++,
            )
          atomicRequestCount.incrementAndGet()
          requestQueue.add(request)
    
          if (request.failure != null) {
            return false // Nothing to respond to.
          }
    
          val response = dispatcher.dispatch(request)
    
          try {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbTreeImpl.java

        }
    
        /**
         * @param track
         * @return tree with increased usage count
         */
        public SmbTreeImpl acquire(final boolean track) {
            final long usage = this.usageCount.incrementAndGet();
            if (log.isTraceEnabled()) {
                log.trace("Acquire tree " + usage + " " + this);
            }
    
            if (track && this.traceResource) {
                synchronized (this.acquires) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/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) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

            ThumbnailManager mockThumbnailManager = new ThumbnailManager() {
                @Override
                public int generate(ExecutorService executorService, boolean cleanup) {
                    counter.incrementAndGet();
                    // Return 0 to exit the loop
                    return 0;
                }
            };
            ComponentUtil.register(mockThumbnailManager, "thumbnailManager");
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/helper/RateLimitHelper.java

            if (counter == null) {
                counter = new AtomicLong(0);
                requestCounters.put(ip, counter);
            }
    
            final long count = counter.incrementAndGet();
    
            if (logger.isDebugEnabled()) {
                logger.debug("Request count: ip={}, count={}, max={}", ip, count, maxRequests);
            }
    
            if (count > maxRequests) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Dec 24 14:16:27 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            builder.build(
                new CacheLoader<String, Object>() {
                  @Override
                  public Object load(String key) throws InterruptedException {
                    callCount.incrementAndGet();
                    startSignal.await();
                    return result;
                  }
                });
    
        List<Object> resultArray = doConcurrentGet(cache, "bar", count, startSignal);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 91K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

              if (asyncCall.callsPerHost.get() >= this.maxRequestsPerHost) continue // Host max capacity.
    
              i.remove()
    
              asyncCall.callsPerHost.incrementAndGet()
              callsToExecute.add(asyncCall)
              runningAsyncCalls.add(asyncCall)
            }
    
            return@synchronized Effects(
              callsToExecute = callsToExecute,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:22 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            release();
        }
    
        /**
         * @return tree handle with increased usage count
         */
        public SmbTreeHandleImpl acquire() {
            if (this.usageCount.incrementAndGet() == 1) {
                this.treeConnection.acquire();
            }
            return this;
        }
    
        @Override
        public void release() {
            final long us = this.usageCount.decrementAndGet();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  9. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * {@snippet :
     * final String name = ...;
     * inFlight.add(name);
     * ListenableFuture<Result> future = service.query(name);
     * future.addListener(new Runnable() {
     *   public void run() {
     *     processedCount.incrementAndGet();
     *     inFlight.remove(name);
     *     lastProcessed.set(name);
     *     logger.info("Done with {0}", name);
     *   }
     * }, executor);
     * }
     *
     * <h3>How to get an instance</h3>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/ListenableFuture.java

     *
     * {@snippet :
     * final String name = ...;
     * inFlight.add(name);
     * ListenableFuture<Result> future = service.query(name);
     * future.addListener(new Runnable() {
     *   public void run() {
     *     processedCount.incrementAndGet();
     *     inFlight.remove(name);
     *     lastProcessed.set(name);
     *     logger.info("Done with {0}", name);
     *   }
     * }, executor);
     * }
     *
     * <h3>How to get an instance</h3>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 8K bytes
    - Click Count (0)
Back to Top