Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for updateAccessTime (0.85 sec)

  1. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
        /**
         * Update the last access time
         */
        public void updateAccessTime() {
            this.lastAccessTime = System.currentTimeMillis();
        }
    
        /**
         * Get the file path
         * @return the path
         */
        public String getPath() {
            return path;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
            }
    
            info.updateAccessTime();
    
            assertTrue(info.getLastAccessTime() > originalAccessTime);
        }
    
        @Test
        public void testUpdateFileId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top