- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for CacheEntry (0.08 sec)
-
src/main/java/jcifs/smb1/smb1/Dfs.java
* Sentinel cache entry indicating a negative cache result */ protected static CacheEntry FALSE_ENTRY = new Dfs.CacheEntry(0L); /** * Cache of trusted domains for DFS resolution */ protected CacheEntry _domains = null; /* aka trusted domains cache */ /** * Cache of DFS referrals */ protected CacheEntry referrals = null; /** * Gets the map of trusted domains for DFS resolution
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsTest.java
Dfs.CacheEntry cacheEntry = new Dfs.CacheEntry(ttl); long expectedExpiration = System.currentTimeMillis() + ttl * 1000L; assertTrue(cacheEntry.expiration >= expectedExpiration - 100 && cacheEntry.expiration <= expectedExpiration + 100); assertNotNull(cacheEntry.map); // Test with TTL = 0, should use default TTL Dfs.CacheEntry cacheEntryDefault = new Dfs.CacheEntry(0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DfsImpl.java
* @return */ private static CacheEntry<DfsReferralDataInternal> cacheRootReferral(final CIFSContext tf, final String domain, final String root, final Map<String, CacheEntry<DfsReferralDataInternal>> roots, final DfsReferralDataInternal dr, CacheEntry<DfsReferralDataInternal> links) { if (dr != null) { links = new CacheEntry<>(tf.getConfig().getDfsTtl());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 29.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
// Step 2: Verify cache entry was created DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath); assertNotNull(cacheEntry); assertEquals(directoryPath, cacheEntry.getDirectoryPath()); assertEquals(DirectoryCacheScope.IMMEDIATE_CHILDREN, cacheEntry.getScope()); assertFalse(cacheEntry.isComplete()); // Step 3: Verify can cache directory listing
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java
// Verify cache entry was created DirectoryCacheEntry cacheEntry = directoryLeaseManager.getCacheEntry(directoryPath); assertNotNull(cacheEntry); assertEquals(directoryPath, cacheEntry.getDirectoryPath()); assertEquals(expectedKey, cacheEntry.getLeaseKey()); assertEquals(scope, cacheEntry.getScope()); } @Test public void testGetCacheEntry() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/netbios/NameServiceClientImpl.java
this.resolveOrder = tc.getConfig().getResolveOrder(); initCache(tc); } static final class CacheEntry { Name hostName; NbtAddress address; long expiration; CacheEntry(final Name hostName, final NbtAddress address, final long expiration) { this.hostName = hostName; this.address = address;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 38.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NbtAddress.java
if (CACHE_POLICY == 0) { return; } synchronized (ADDRESS_CACHE) { CacheEntry entry = (CacheEntry) ADDRESS_CACHE.get(hostName); if (entry == null) { entry = new CacheEntry(hostName, addr, expiration); ADDRESS_CACHE.put(hostName, entry); } else { entry.address = addr;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
Smb2LeaseKey leaseKey = baseLeaseManager.requestLease(directoryPath, requestedState); // Create directory cache entry DirectoryCacheEntry cacheEntry = new DirectoryCacheEntry(directoryPath, leaseKey, scope); directoryCache.put(directoryPath, cacheEntry); leaseToPath.put(leaseKey, directoryPath); // Start change notification if enabled Configuration config = context.getConfig();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K bytes - Viewed (0) -
docs/smb3-features/04-directory-leasing-design.md
Smb2LeaseKey leaseKey = baseLeaseManager.requestLease(directoryPath, requestedState); // Create directory cache entry DirectoryCacheEntry cacheEntry = new DirectoryCacheEntry(directoryPath, leaseKey, scope); directoryCache.put(directoryPath, cacheEntry); leaseToPath.put(leaseKey, directoryPath); // Start change notification if enabled
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 36.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
assertThat(cache.networkCount()).isEqualTo(2) assertThat(cache.hitCount()).isEqualTo(0) } private fun corruptCertificate(cacheEntry: Path) { var content = fileSystem.source(cacheEntry).buffer().readUtf8() content = content.replace("MII", "!!!") fileSystem .sink(cacheEntry) .buffer() .writeUtf8(content) .close() } @Test fun responseCachingAndRedirects() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 113.6K bytes - Viewed (0)