- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for MarkComplete (0.07 seconds)
-
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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 8.4K bytes - Click Count (0) -
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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 15.9K bytes - Click Count (0) -
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
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 12.3K bytes - Click Count (0) -
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 {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 36.2K bytes - Click Count (0) -
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 {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 11.4K bytes - Click Count (0)