Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for hasReadCache (0.26 sec)

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

            leaseManager.updateLease(fullKey, Smb2LeaseState.SMB2_LEASE_FULL);
            LeaseEntry fullEntry = leaseManager.getLease(fullKey);
    
            assertTrue(fullEntry.hasReadCache());
            assertTrue(fullEntry.hasWriteCache());
            assertTrue(fullEntry.hasHandleCache());
    
            // Test read-only lease
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. docs/smb3-features/01-smb3-lease-design.md

                this.lastAccessTime = System.currentTimeMillis();
            }
            
            public synchronized void incrementEpoch() {
                this.epoch++;
            }
            
            public boolean hasReadCache() {
                return (leaseState & Smb2LeaseState.SMB2_LEASE_READ_CACHING) != 0;
            }
            
            public boolean hasWriteCache() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            when(mockLeaseEntry.hasReadCache()).thenReturn(true);
            when(baseLeaseManager.getLease(leaseKey)).thenReturn(mockLeaseEntry);
    
            assertTrue(directoryLeaseManager.canCacheDirectoryListing(directoryPath));
    
            // When read cache is lost
            when(mockLeaseEntry.hasReadCache()).thenReturn(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                // Check if lease is still valid
                LeaseManager.LeaseEntry leaseEntry = baseLeaseManager.getLease(entry.getLeaseKey());
                if (leaseEntry == null || !leaseEntry.hasReadCache()) {
                    // Lease lost, remove cache entry
                    directoryCache.remove(directoryPath);
                    return null;
                }
            }
    
            return entry;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                this.epoch++;
            }
    
            /**
             * Check if lease has read caching
             *
             * @return true if read caching is enabled
             */
            public boolean hasReadCache() {
                return Smb2LeaseState.hasReadCaching(leaseState);
            }
    
            /**
             * Check if lease has write caching
             *
             * @return true if write caching is enabled
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. docs/smb3-features/04-directory-leasing-design.md

                // Check if lease is still valid
                LeaseEntry leaseEntry = baseLeaseManager.getLease(entry.getLeaseKey());
                if (leaseEntry == null || !leaseEntry.hasReadCache()) {
                    // Lease lost, remove cache entry
                    directoryCache.remove(directoryPath);
                    return null;
                }
            }
            
            return entry;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
Back to top