- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for getEpoch (0.28 sec)
-
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) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java
*/ public Smb2LeaseKey getParentLeaseKey() { return parentLeaseKey; } /** * Gets the lease epoch from the V2 response * @return the epoch */ public int getEpoch() { return epoch; } @Override public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException { int start = bufferIndex; if (len < 52) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java
/** * Gets the lease epoch for V2 lease versioning * @return the epoch */ public int getEpoch() { return epoch; } /** * Sets the lease epoch for V2 lease versioning * @param epoch the epoch to set */ public void setEpoch(int epoch) { this.epoch = epoch; } @Override public int size() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 6.2K bytes - Viewed (0) -
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) -
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)