Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for setMaxAge (0.07 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

                    DirectoryCacheScope.IMMEDIATE_CHILDREN);
    
            // Make the cache entry expired
            DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath);
            entry.setMaxAge(1); // 1ms to expire immediately
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                // Ignore
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

        }
    
        /**
         * Sets the maximum age of the role information in seconds.
         * @param maxAge The maximum age of the role information in seconds.
         */
        public void setMaxAge(final long maxAge) {
            this.maxAge = maxAge;
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            assertTrue(entry.hasChanges());
            assertTrue(entry.getChildren().isEmpty());
        }
    
        @Test
        public void testExpiration() {
            // Set a very short max age
            entry.setMaxAge(100); // 100ms
    
            assertFalse(entry.isExpired());
            assertFalse(entry.needsRefresh());
    
            // Wait for expiration
            try {
                Thread.sleep(150);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            DirectoryCacheEntry entry = directoryLeaseManager.getCacheEntry(directoryPath);
            assertNotNull(entry);
    
            // Set very short expiration time
            entry.setMaxAge(50); // 50ms
    
            // Update cache
            List<SmbFile> files = Arrays.asList(mockFile1);
            directoryLeaseManager.updateDirectoryCache(directoryPath, files);
    
            assertTrue(entry.isComplete());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

        public long getMaxAge() {
            return maxAge;
        }
    
        /**
         * Sets the maximum age for cached data
         * @param maxAge the maximum cache age in milliseconds
         */
        public void setMaxAge(long maxAge) {
            this.maxAge = maxAge;
        }
    
        /**
         * Gets the timestamp when this cache entry was created
         * @return the create time
         */
        public long getCreateTime() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                            if (StringUtil.isNotBlank(path)) {
                                cookie.setPath(path);
                            }
                            cookie.setMaxAge(fessConfig.getCookieSearchParameterMaxAgeAsInteger());
                            cookie.setAttribute("SameSite", fessConfig.getCookieSearchParameterSameSite());
                            res.addCookie(cookie);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            assertEquals("cookie", roleQueryHelper.cookieKey);
    
            roleQueryHelper.setEncryptedCookieValue(false);
            assertFalse(roleQueryHelper.encryptedCookieValue);
    
            roleQueryHelper.setMaxAge(300);
            assertEquals(300, roleQueryHelper.maxAge);
        }
    
        public void test_init() {
            final RoleQueryHelper roleQueryHelper = new RoleQueryHelper();
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

         * @param age the maximum age of the cookie in seconds
         */
        protected void updateCookie(final String userCode, final int age) {
            final Cookie cookie = new Cookie(cookieName, userCode);
            cookie.setMaxAge(age);
            cookie.setHttpOnly(httpOnly);
            if (StringUtil.isNotBlank(cookieDomain)) {
                cookie.setDomain(cookieDomain);
            }
            if (StringUtil.isNotBlank(cookiePath)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14.9K bytes
    - Viewed (0)
Back to top