Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for markComplete (0.33 sec)

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

            entry.updateChild("file1.txt", 1024L, 1000L, false, 0x20, 500L, 800L);
            entry.updateChild("file2.txt", 2048L, 2000L, false, 0x20, 600L, 900L);
            entry.markComplete();
    
            // Test FILE_ADDED - should invalidate cache
            directoryLeaseManager.handleDirectoryChange(directoryPath, "file3.txt", DirectoryChangeNotifier.DirectoryChangeType.FILE_ADDED);
    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/test/java/jcifs/internal/smb2/lease/DirectoryCacheEntryTest.java

            entry.updateChild(childName, 1024L, 1000L, false, 0x20, 500L, 800L);
            assertTrue(entry.hasChanges());
    
            // Clear changes to test next scenario
            entry.markComplete();
            assertFalse(entry.hasChanges());
    
            // Update with same values - should not mark as changed (no actual change)
            entry.updateChild(childName, 1024L, 1000L, false, 0x20, 500L, 800L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  3. docs/smb3-features/04-directory-leasing-design.md

            return System.currentTimeMillis() - lastUpdateTime > maxAge;
        }
        
        public boolean needsRefresh() {
            return isExpired() || hasChanges;
        }
        
        public void markComplete() {
            lock.writeLock().lock();
            try {
                this.isComplete = true;
                this.hasChanges = false;
                this.lastUpdateTime = System.currentTimeMillis();
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryCacheEntry.java

         */
        public boolean needsRefresh() {
            return isExpired() || hasChanges;
        }
    
        /**
         * Mark the cache as complete (full enumeration cached)
         */
        public void markComplete() {
            lock.writeLock().lock();
            try {
                this.isComplete = true;
                this.hasChanges = false;
                this.lastUpdateTime = System.currentTimeMillis();
            } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                } catch (Exception e) {
                    log.debug("Error updating cache entry for {}: {}", file.getName(), e.getMessage());
                }
            }
    
            entry.markComplete();
        }
    
        /**
         * Handle directory change notification
         *
         * @param directoryPath directory path
         * @param childName child file name
         * @param changeType type of change
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaWorkRequest.java

         *
         * @return true if completed, false otherwise
         */
        public boolean isCompleted() {
            return completed;
        }
    
        /**
         * Mark request as completed
         */
        public void markCompleted() {
            this.completed = true;
        }
    
        /**
         * Mark request as failed with error
         *
         * @param error exception that caused the failure
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top