- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for setLeaseState (0.09 sec)
-
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
*/ public int getLeaseState() { return leaseState; } /** * Sets the requested lease state flags * @param leaseState the lease state to set */ public void setLeaseState(int leaseState) { this.leaseState = leaseState; } /** * Gets the lease flags for this request * @return the lease flags */ public int getLeaseFlags() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java
} @Test @DisplayName("Should set and get lease state") void testLeaseStateAccessors() { int newState = Smb2LeaseState.SMB2_LEASE_FULL; leaseContext.setLeaseState(newState); assertEquals(newState, leaseContext.getLeaseState()); } @Test @DisplayName("Should set and get lease flags") void testLeaseFlagsAccessors() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 5.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java
public int getLeaseState() { return leaseState; } /** * Sets the requested lease state flags for V2 * @param leaseState the lease state to set */ public void setLeaseState(int leaseState) { this.leaseState = leaseState; } /** * Gets the lease flags for this V2 request * @return the lease flags */ public int getLeaseFlags() {
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/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
DirectoryLeaseContext context = new DirectoryLeaseContext(key1, 0, DirectoryCacheScope.IMMEDIATE_CHILDREN); context.setLeaseKey(key2); assertEquals(key2, context.getLeaseKey()); context.setLeaseState(DirectoryLeaseState.DIRECTORY_FULL); assertEquals(DirectoryLeaseState.DIRECTORY_FULL, context.getLeaseState()); context.setCacheScope(DirectoryCacheScope.RECURSIVE_TREE);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseContext.java
public int getLeaseState() { return leaseState; } /** * Sets the lease state flags for this directory * @param leaseState the lease state to set */ public void setLeaseState(int leaseState) { this.leaseState = leaseState; } /** * Gets the cache scope for directory enumeration caching * @return the cache scope */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 9.4K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
// In Smb2CreateRequest.java public void addLeaseContext(Smb2LeaseKey key, int requestedState, boolean isV2) { 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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
public DirectoryLeaseContext(Smb2LeaseKey key, int leaseState, DirectoryCacheScope scope) { super(); setLeaseKey(key); setLeaseState(leaseState); this.cacheScope = scope; this.maxCacheAge = 30000; // 30 seconds default this.notificationEnabled = true; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0)