Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for delayByRules (0.1 sec)

  1. src/test/java/org/codelibs/fess/helper/IntervalControlHelperTest.java

            long start = System.currentTimeMillis();
            helper.delayByRules();
            long end = System.currentTimeMillis();
            assertTrue(end - start < 50); // Should return quickly
    
            // Test with rule that has no delay
            helper.addIntervalRule("01:30", "15:15", "*", 0);
            start = System.currentTimeMillis();
            helper.delayByRules();
            end = System.currentTimeMillis();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/crawler/interval/FessIntervalController.java

            try {
                final IntervalControlHelper intervalControlHelper = ComponentUtil.getIntervalControlHelper();
                intervalControlHelper.checkCrawlerStatus();
                intervalControlHelper.delayByRules();
            } catch (final Exception e) {}
    
            super.delayForWaitingNewUrl();
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java

        /**
         * Applies delay based on the configured interval rules.
         * This method calculates the appropriate delay for the current time
         * and applies it by sleeping the current thread.
         */
        public void delayByRules() {
            final long delay = getDelay();
            if (delay > 0) {
                ThreadUtil.sleep(delay);
            }
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/indexer/IndexUpdaterTest.java

            }
    
            @Override
            public boolean isCrawlerRunning() {
                return crawlerRunning;
            }
    
            @Override
            public void delayByRules() {
                // Do nothing in test
            }
        }
    
        private static class TestSearchLogHelper extends SearchLogHelper {
            private int clickCount = 0;
            private long favoriteCount = 0L;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 33K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

                        }
    
                        systemHelper.calibrateCpuLoad();
                        systemHelper.waitForNoWaitingThreads();
    
                        intervalControlHelper.delayByRules();
    
                        if (logger.isDebugEnabled()) {
                            logger.debug("Processing documents in IndexUpdater queue.");
                        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top