Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getRelease (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          }
        }
    
        @Override
        void putThread(Waiter waiter, Thread newValue) {
          waiterThreadUpdater.setRelease(waiter, newValue);
        }
    
        @Override
        void putNext(Waiter waiter, @Nullable Waiter newValue) {
          waiterNextUpdater.setRelease(waiter, newValue);
        }
    
        @Override
        boolean casWaiters(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  7. 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)
Back to top