Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getLease (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 22K bytes
    - Click Count (0)
  2. 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
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  3. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 00:16:17 GMT 2025
    - 13.2K bytes
    - Click Count (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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  5. 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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. 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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 36.2K bytes
    - Click Count (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 21.7K bytes
    - Click Count (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringVisitorModelInterpolator.java

                    val = interpolate(org);
                    if (org != val) {
                        execution.setId(val);
                    }
                    // Phase
                    org = execution.getPhase();
                    val = interpolate(org);
                    if (org != val) {
                        execution.setPhase(val);
                    }
                    // Goals
                    visit(execution.getGoals());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 43.1K bytes
    - Click Count (0)
Back to Top