- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getLease (0.04 sec)
-
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
assertNotNull(leaseManager.getLease(key1)); assertNotNull(leaseManager.getLease(key2)); leaseManager.releaseAll(); assertNull(leaseManager.getLease(key1)); assertNull(leaseManager.getLease(key2)); assertTrue(leaseManager.getAllLeases().isEmpty()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
public boolean canCacheRead() { if (leaseKey != null) { LeaseEntry entry = leaseManager.getLease(leaseKey); return entry != null && entry.hasReadCache(); } return false; // Fall back to oplock logic } public boolean canCacheWrite() { if (leaseKey != null) { LeaseEntry entry = leaseManager.getLease(leaseKey); return entry != null && entry.hasWriteCache(); } return false;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
try { Thread.sleep(10); } catch (InterruptedException e) { // Ignore } // When lease is lost, cache entry should be removed when(baseLeaseManager.getLease(leaseKey)).thenReturn(null); assertNull(directoryLeaseManager.getCacheEntry(directoryPath)); } @Test public void testCanCacheDirectoryListing() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
// Check if cache entry is valid if (entry != null && entry.needsRefresh()) { // 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;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
// Check if cache entry is valid if (entry != null && entry.needsRefresh()) { // 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;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/LeaseManager.java
} } /** * Get lease entry by key * * @param key lease key * @return lease entry or null if not found */ public LeaseEntry getLease(Smb2LeaseKey key) { return leases.get(key); } /** * Get lease entry by path * * @param path file path * @return lease entry or null if not found */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0)