Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for AtomicLong (0.06 seconds)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

        public void test_interface_methods() {
            // Test with anonymous implementation
            IndexUpdateCallback callback = new IndexUpdateCallback() {
                private final AtomicLong docSize = new AtomicLong(0);
                private final AtomicLong execTime = new AtomicLong(0);
    
                @Override
                public void store(DataStoreParams paramMap, Map<String, Object> dataMap) {
                    assertNotNull(paramMap);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

       */
      public void testBuilder_bruteForce() {
        for (int i = 0; i < reduceIterationsIfGwt(100); i++) {
          ImmutableLongArray.Builder builder = ImmutableLongArray.builder(random.nextInt(20));
          AtomicLong counter = new AtomicLong(0);
          while (counter.get() < 1000) {
            BuilderOp op = BuilderOp.randomOp();
            op.doIt(builder, counter);
          }
          ImmutableLongArray iia = builder.build();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

      // We would use AtomicLongFieldUpdater, but it has issues on some Android devices.
      private transient AtomicLong value;
    
      /**
       * Creates a new {@code AtomicDouble} with the given initial value.
       *
       * @param initialValue the initial value
       */
      public AtomicDouble(double initialValue) {
        value = new AtomicLong(doubleToRawLongBits(initialValue));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/RateLimitHelper.java

            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final int maxRequests = fessConfig.getRateLimitRequestsPerWindowAsInteger();
    
            AtomicLong counter = requestCounters.getIfPresent(ip);
            if (counter == null) {
                counter = new AtomicLong(0);
                requestCounters.put(ip, counter);
            }
    
            final long count = counter.incrementAndGet();
    
    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)
  5. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

        // Test implementation of IndexUpdateCallback for testing purposes
        private static class TestIndexUpdateCallback implements IndexUpdateCallback {
            private final AtomicLong documentCount = new AtomicLong(0);
            private final AtomicLong executeTime = new AtomicLong(0);
            private final AtomicBoolean committed = new AtomicBoolean(false);
            private final long startTime = System.currentTimeMillis();
    
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackImpl.java

         */
        public IndexUpdateCallbackImpl() {
            // Default constructor
        }
    
        /** Atomic counter for the number of documents processed */
        protected AtomicLong documentSize = new AtomicLong(0);
    
        /** Total execution time for all operations */
        protected volatile long executeTime = 0;
    
        /** List of documents waiting to be indexed */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                        excludeFields, query);
            }
    
            final long startTime = System.currentTimeMillis();
    
            try {
                final AtomicLong processedCount = new AtomicLong(0);
                final long count = searchEngineClient.scrollSearch(fessConfig.getIndexDocumentSearchIndex(), requestBuilder -> {
                    requestBuilder.setQuery(query).setSize(scrollSize);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

        /** Sort list. */
        protected List<SortBuilder<?>> sortList = new ArrayList<>();
    
        /** Scroll ID. */
        protected String scrollId = null;
    
        /** Document count. */
        protected final AtomicLong docCount = new AtomicLong(0);
        /** Total document number. */
        protected final long totalDocNum;
    
        /**
         * Constructor for ESSourceReader.
         * @param client The OpenSearch client.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  9. docs/features/events.md

    ```java
    class PrintingEventListener extends EventListener {
      public static final Factory FACTORY = new Factory() {
        final AtomicLong nextCallId = new AtomicLong(1L);
    
        @Override public EventListener create(Call call) {
          long callId = nextCallId.getAndIncrement();
          System.out.printf("%04d %s%n", callId, call.request().url());
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/CrawlerContext.java

         */
        protected final AtomicInteger activeThreadCount = new AtomicInteger(0);
    
        /**
         * Atomic counter for tracking the number of accesses made.
         */
        protected AtomicLong accessCount = new AtomicLong(0);
    
        /**
         * Current status of the crawler.
         */
        protected volatile CrawlerStatus status = CrawlerStatus.INITIALIZING;
    
        /**
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Wed Dec 31 09:07:38 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top