- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for getLeaseKey (0.05 sec)
- 
				
				src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.javaDirectoryCacheScope scope = DirectoryCacheScope.IMMEDIATE_CHILDREN; 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());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/DirectoryLeaseManager.javaDirectoryCacheEntry entry = directoryCache.remove(directoryPath); if (entry != null) { leaseToPath.remove(entry.getLeaseKey()); changeNotifier.stopWatching(directoryPath); baseLeaseManager.releaseLease(entry.getLeaseKey()); } } /** * Shutdown the directory lease manager */ public void shutdown() { Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0)
- 
				
				src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.javaassertNotNull(defaultContext.getLeaseKey()); assertEquals(0, defaultContext.getLeaseState()); assertEquals(0, defaultContext.getLeaseFlags()); } @Test @DisplayName("Should initialize with provided values") void testParameterizedConstructor() { assertEquals(testKey, leaseContext.getLeaseKey()); assertEquals(testState, leaseContext.getLeaseState());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/Smb2CreateResponse.java*/ public jcifs.internal.smb2.lease.Smb2LeaseKey getLeaseKey() { LeaseV2CreateContextResponse v2 = getLeaseV2Context(); if (v2 != null) { return v2.getLeaseKey(); } LeaseV1CreateContextResponse v1 = getLeaseV1Context(); if (v1 != null) { return v1.getLeaseKey(); } return null; } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 15.4K bytes - Viewed (0)
- 
				
				docs/smb3-features/04-directory-leasing-design.mdDirectoryCacheEntry entry = directoryCache.remove(directoryPath); if (entry != null) { leaseToPath.remove(entry.getLeaseKey()); changeNotifier.stopWatching(directoryPath); baseLeaseManager.releaseLease(entry.getLeaseKey()); } } private void cleanupExpiredEntries() { List<String> expiredPaths = new ArrayList<>(); Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java// request.addCreateContext(new DurableHandleReconnect(info.getFileId())); // Add lease context if needed // if (info.getLeaseKey() != null) { // request.addLeaseV1Context(info.getLeaseKey(), Smb2LeaseState.SMB2_LEASE_NONE); // } // return request; Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 8.5K bytes - Viewed (1)
- 
				
				src/test/java/jcifs/tests/persistent/HandleInfoTest.javaassertArrayEquals(testFileId, info.getFileId()); assertEquals(HandleType.DURABLE_V2, info.getType()); assertEquals(120000, info.getTimeout()); assertEquals(testLeaseKey, info.getLeaseKey()); assertFalse(info.isReconnecting()); assertNull(info.getFile()); } @Test public void testHandleInfoExpiration() { // Test durable handle expiration Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 4.6K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.javapublic byte[] getName() { return CONTEXT_NAME_BYTES; } /** * Gets the lease key from the V2 server response * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state granted by the server for V2 * @return the granted lease state */ public int getLeaseState() { return leaseState; 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/lock/Smb2LeaseBreakAcknowledgment.javathis(context.getConfig(), leaseKey, leaseState); } /** * Gets the lease key for this acknowledgment * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state being acknowledged * @return the lease state */ public int getLeaseState() { return leaseState; } Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.2K bytes - Viewed (0)
- 
				
				src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java@Override public byte[] getName() { return CONTEXT_NAME_BYTES; } /** * Gets the lease key from the server response * @return the lease key */ public Smb2LeaseKey getLeaseKey() { return leaseKey; } /** * Gets the lease state granted by the server * @return the granted lease state */ public int getLeaseState() { return leaseState;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 2.8K bytes - Viewed (0)