Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for registerFileCache (0.55 sec)

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

            String path = "/share/cached.txt";
            Smb2LeaseKey key = leaseManager.requestLease(path, Smb2LeaseState.SMB2_LEASE_FULL);
    
            // Register a mock file with cache
            leaseManager.registerFileCache(path, null); // Using null for simplicity in test
    
            // Handle lease break which should trigger cache operations
            leaseManager.handleLeaseBreak(key, Smb2LeaseState.SMB2_LEASE_NONE);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

            }
        }
    
        /**
         * Register a file with cache for a path
         *
         * @param path file path
         * @param file SmbFile instance
         */
        public void registerFileCache(String path, SmbFile file) {
            if (file != null) {
                fileCache.put(path, new WeakReference<>(file));
            }
        }
    
        /**
         * Evict oldest leases based on LRU
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
Back to top