- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for getLeaseState (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java
*/ public int getLeaseState() { LeaseV2CreateContextResponse v2 = getLeaseV2Context(); if (v2 != null) { return v2.getLeaseState(); } LeaseV1CreateContextResponse v1 = getLeaseV1Context(); if (v1 != null) { return v1.getLeaseState(); } return 0; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:49:49 GMT 2025 - 15.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
assertNotNull(key); LeaseEntry entry = leaseManager.getLease(key); assertNotNull(entry); assertEquals(requestedState, entry.getLeaseState()); assertEquals(path, entry.getPath()); assertEquals(1, entry.getEpoch()); assertFalse(entry.isBreaking()); } @Test @DisplayName("Should reuse existing lease for same path")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
DirectoryLeaseContext context = new DirectoryLeaseContext(key, leaseState, scope); assertEquals(key, context.getLeaseKey()); assertEquals(leaseState, context.getLeaseState()); assertEquals(scope, context.getCacheScope()); assertEquals(30000L, context.getMaxCacheAge()); assertTrue(context.isNotificationEnabled()); assertEquals(0, context.getNotificationFilter());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 10.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
decodedContext.decode(buffer, 0, buffer.length); // Verify roundtrip integrity assertEquals(context.getLeaseState(), decodedContext.getLeaseState()); assertEquals(context.getCacheScope(), decodedContext.getCacheScope()); assertEquals(context.getMaxCacheAge(), decodedContext.getMaxCacheAge());Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 01:47:47 GMT 2025 - 14.2K bytes - Click Count (0) -
docs/smb3-features/01-smb3-lease-design.md
LeaseEntry entry = manager.getLease(key); assertNotNull(entry); assertEquals(requestedState, entry.getLeaseState()); // Test lease break manager.handleLeaseBreak(key, Smb2LeaseState.SMB2_LEASE_READ_CACHING); assertEquals(Smb2LeaseState.SMB2_LEASE_READ_CACHING, entry.getLeaseState()); } } ``` ### 8.2 Integration Tests ```java @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 22K bytes - Click Count (0)