Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for handleLeaseBreak (0.48 sec)

  1. docs/smb3-features/01-smb3-lease-design.md

                entry.updateState(grantedState);
            }
        }
        
        public LeaseEntry getLease(Smb2LeaseKey key) {
            return leases.get(key);
        }
        
        public void handleLeaseBreak(Smb2LeaseKey key, int newState) {
            LeaseEntry entry = leases.get(key);
            if (entry != null) {
                entry.breaking = true;
                entry.updateState(newState);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            Smb2LeaseKey key = leaseManager.requestLease(path, initialState);
            leaseManager.updateLease(key, initialState);
    
            int initialEpoch = leaseManager.getLease(key).getEpoch();
            leaseManager.handleLeaseBreak(key, newState);
    
            LeaseEntry entry = leaseManager.getLease(key);
            assertEquals(newState, entry.getLeaseState());
            assertEquals(initialEpoch + 1, entry.getEpoch());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

        }
    
        /**
         * Handle a lease break notification
         *
         * @param key lease key
         * @param newState new lease state
         */
        public void handleLeaseBreak(Smb2LeaseKey key, int newState) {
            LeaseEntry entry = leases.get(key);
            if (entry != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

            // Cache should be invalidated
            assertFalse(entry.isComplete());
    
            // Verify base lease manager was called
            verify(baseLeaseManager).handleLeaseBreak(leaseKey, newState);
        }
    
        @Test
        public void testReleaseDirectoryLease() {
            String directoryPath = "/test/dir";
            Smb2LeaseKey leaseKey = new Smb2LeaseKey();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java

                // Lost handle cache - may need to close directory handle
                changeNotifier.stopWatching(directoryPath);
            }
    
            // Forward to base lease manager
            baseLeaseManager.handleLeaseBreak(leaseKey, newState);
        }
    
        /**
         * Release directory lease
         *
         * @param directoryPath directory path
         */
        public void releaseDirectoryLease(String directoryPath) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. docs/smb3-features/04-directory-leasing-design.md

                // Lost handle cache - may need to close directory handle
                changeNotifier.stopWatching(directoryPath);
            }
            
            // Forward to base lease manager
            baseLeaseManager.handleLeaseBreak(leaseKey, newState);
        }
        
        public void releaseDirectoryLease(String directoryPath) {
            DirectoryCacheEntry entry = directoryCache.remove(directoryPath);
            if (entry != 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)
Back to top