- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for setLeaseKey (0.5 sec)
-
src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java
*/ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Sets the lease key for this lease request * @param leaseKey the lease key to set */ public void setLeaseKey(Smb2LeaseKey leaseKey) { this.leaseKey = leaseKey; } /** * Gets the requested lease state flags * @return the requested lease state */ public int getLeaseState() {
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
(byte) 0xF8, (byte) 0xF7, (byte) 0xF6, (byte) 0xF5, (byte) 0xF4, (byte) 0xF3, (byte) 0xF2, (byte) 0xF1, (byte) 0xF0 }; Smb2LeaseKey newKey = new Smb2LeaseKey(newKeyBytes); leaseContext.setLeaseKey(newKey); assertEquals(newKey, leaseContext.getLeaseKey()); } @Test @DisplayName("Should set and get lease state") void testLeaseStateAccessors() {
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 Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Sets the lease key for this V2 lease request * @param leaseKey the lease key to set */ public void setLeaseKey(Smb2LeaseKey leaseKey) { this.leaseKey = leaseKey; } /** * Gets the requested lease state flags for V2 * @return the requested lease state */ public int getLeaseState() {
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
Smb2LeaseKey key2 = new Smb2LeaseKey(); 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());
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 Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Sets the lease key for this directory lease context * @param leaseKey the lease key to set */ public void setLeaseKey(Smb2LeaseKey leaseKey) { this.leaseKey = leaseKey; } /** * Gets the current lease state flags for this directory * @return the lease state */ public int getLeaseState() {
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
```java // 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); } ```
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 static final int DIRECTORY_LEASE_FLAG_NOTIFICATIONS = 0x00000002; 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)