Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for waitForNext (0.04 sec)

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

        }
    
        public void test_waitForNext_withPositiveInterval() throws InterruptedException {
            configHelper.setReloadInterval(20L);
    
            long startTime = System.currentTimeMillis();
            configHelper.waitForNext();
            long endTime = System.currentTimeMillis();
    
            long elapsed = endTime - startTime;
            assertTrue("Expected at least 15ms sleep, got " + elapsed + "ms", elapsed >= 15);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 00:03:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/AbstractConfigHelper.java

        /**
         * Update the configuration.
         */
        public void update() {
            CommonPoolUtil.execute(this::load);
        }
    
        /**
         * Wait for the next reloading.
         */
        protected void waitForNext() {
            if (reloadInterval > 0) {
                ThreadUtil.sleep(reloadInterval);
            }
        }
    
        /**
         * Load the configuration.
         * @return The number of loaded configurations.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top