- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for CacheEntry (0.06 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) -
android/guava/src/com/google/common/graph/MapIteratorCache.java
@Nullable V getIfCached(@Nullable Object key) { Entry<K, V> entry = cacheEntry; // store local reference for thread-safety // Check cache. We use == on purpose because it's cheaper and a cache miss is ok. if (entry != null && entry.getKey() == key) { return entry.getValue(); } return null; } void clearCache() { cacheEntry = null; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapRetrievalCache.java
} private void addToCache(K key, V value) { addToCache(new CacheEntry<K, V>(key, value)); } private void addToCache(CacheEntry<K, V> entry) { // Slide new entry into first cache position. Drop previous entry in second cache position. cacheEntry2 = cacheEntry1; cacheEntry1 = entry; } private static final class CacheEntry<K, V> { final K key; final V value;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K 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)