Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lastLoadedTime (0.61 sec)

  1. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

         * This cache is refreshed periodically based on the lastLoadedTime.
         */
        protected String[] dataStoreNames = StringUtil.EMPTY_STRINGS;
    
        /**
         * Timestamp of the last time data store names were loaded from plugin files.
         * Used to implement a time-based cache refresh mechanism.
         */
        protected long lastLoadedTime = 0;
    
        /**
         * Creates a new instance of DataStoreFactory.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java

            assertEquals(2, names.length);
            assertEquals(1, loadCount[0]); // Should not increment
    
            // Simulate time passing (more than 60 seconds)
            testFactory.lastLoadedTime = System.currentTimeMillis() - 61000L;
    
            // Should reload after cache expiry
            names = testFactory.getDataStoreNames();
            assertEquals(2, names.length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top