Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getEpoch (0.04 sec)

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

            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());
            assertFalse(entry.isBreaking()); // Should be false after break handling completes
        }
    
    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. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                return leaseState;
            }
    
            /**
             * Gets the current lease epoch value for versioning
             * @return the current epoch
             */
            public int getEpoch() {
                return epoch;
            }
    
            /**
             * Gets the file path associated with this lease
             * @return the file path
             */
            public String getPath() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. docs/smb3-features/01-smb3-lease-design.md

        Smb2LeaseContext leaseContext = new Smb2LeaseContext();
        leaseContext.setLeaseKey(key);
        leaseContext.setLeaseState(requestedState);
        if (isV2) {
            leaseContext.setEpoch(1);
            // Set parent lease key if available
        }
        addCreateContext(leaseContext);
    }
    ```
    
    ### 6.2 Modifying SmbFile
    ```java
    // In SmbFile.java
    private Smb2LeaseKey leaseKey;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
Back to top