Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 327 for counter (0.1 sec)

  1. src/main/java/org/codelibs/fess/job/CrawlJob.java

        }
    
        /**
         * Gets the count of currently running crawler jobs.
         * This method queries the scheduled jobs to count active crawler processes.
         * Used to enforce maximum concurrent crawler limits.
         *
         * @return the number of currently running crawler jobs
         */
        protected int getRunningJobCount() {
            final AtomicInteger counter = new AtomicInteger(0);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

                final int maxDepth = getMaxDepth(paramMap, dataMap);
                long counter = 0;
                final Deque<CrawlRequest> requestQueue = new LinkedList<>();
                final Set<String> processedUrls = new HashSet<>();
                requestQueue.offer(new CrawlRequest(url, 0));
                while (!requestQueue.isEmpty() && (maxAccessCount < 0 || counter < maxAccessCount)) {
                    final CrawlRequest crawlRequest = requestQueue.poll();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * exception is thrown, this exception is used as the result of the output {@code Future}.
       *
       * <p>Usage example:
       *
       * {@snippet :
       * // Falling back to a zero counter in case an exception happens when processing the RPC to fetch
       * // counters.
       * ListenableFuture<Integer> faultTolerantFuture =
       *     fetchCounters().catching(FetchException.class, x -> 0, directExecutor());
       * }
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

                        return (int) misses.incrementAndGet();
                      }
                    });
    
        // To start, fill up the cache.
        // Each miss both increments the counter and causes the map to grow by one,
        // so until evictions begin, the size of the map is the greatest return
        // value seen so far
        while (cache.getUnchecked(nextRandomKey()) < maximumSize) {}
    
        requests.set(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

            .build(),
        )
        val asyncRequestBody: RequestBody =
          object : RequestBody() {
            var counter = 0
    
            override fun contentType() = null
    
            override fun writeTo(sink: BufferedSink) {
              counter++
              assertThat(counter).isLessThanOrEqualTo(1)
              sink.writeUtf8("Hello request!")
              sink.close()
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 37.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      private static class Counter<N extends Number> {
        @Keep List<N> counts;
      }
    
      public void testWildcardCaptured_typeVariableDeclaresTypeBound_wildcardHasNoExplicitUpperBound()
          throws Exception {
        TypeToken<Counter<?>> type = new TypeToken<Counter<?>>() {};
        TypeToken<?> fieldType =
            type.resolveType(Counter.class.getDeclaredField("counts").getGenericType());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/ResourceManagerTest.java

            System.gc();
            Thread.sleep(200);
    
            // Check for leaks
            resourceManager.checkForLeaks();
    
            Map<String, Object> stats = resourceManager.getStatistics();
            // The leak counter may or may not increment depending on GC timing
            assertNotNull(stats.get("totalLeaks"));
        }
    
        private void createLeakyResource() {
            TestResource resource = new TestResource("leaky");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

          val buffer = cursor.data
          var i = cursor.start
          val end = cursor.end
          if (buffer != null) {
            while (i < end) {
              keyIndex %= keyLength // Reassign to prevent overflow breaking counter.
    
              // Byte xor is experimental in Kotlin so we coerce bytes to int, xor them
              // and convert back to byte.
              val bufferInt: Int = buffer[i].toInt()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                return context;
            }
    
            /**
             * Increments the counter.
             */
            public void inc() {
                counter++;
            }
    
            @Override
            public void close() {
                if (counter > 1) {
                    counter--;
                } else {
                    contextLocal.remove();
                    if (context != null) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 82K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                byte[] buf = BufferCache.getBuffer();
                BufferCache.releaseBuffer(buf);
            }
    
            // 3. Atomic Operations Test
            AtomicLong counter = new AtomicLong(0);
            for (int i = 0; i < 1000; i++) {
                counter.addAndGet(1024);
            }
    
            long end = System.nanoTime();
            double totalTimeMs = (end - start) / 1_000_000.0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top