Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  1. 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.
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/AbstractConfigHelperTest.java

        @Test
        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);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 4.8K bytes
    - Click Count (0)
Back to Top