Home
last modified time | relevance | path

Searched refs:CacheEntry (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java40 private ConcurrentMap<K, CacheEntry<K, V>> map;
55 CacheEntry<K, V> entry = map.get(key); in get()
69 CacheEntry<K, V> newEntry = new CacheEntry<>(key, newVal, queue); in get()
86 CacheEntry<K, V> entry = new CacheEntry<>(key, value, queue); in put()
87 CacheEntry<K, V> oldEntry = map.put(key, entry); in put()
93 CacheEntry<K, V> entry; in cleanStaleEntries()
94 while ((entry = (CacheEntry<K, V>)queue.poll()) != null) { in cleanStaleEntries()
105 private static class CacheEntry<K, V> extends SoftReference<V> { class in LocaleObjectCache
108 CacheEntry(K key, V value, ReferenceQueue<V> queue) { in CacheEntry() method in LocaleObjectCache.CacheEntry
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java252 private final Map<K, CacheEntry<K,V>> cacheMap;
290 CacheEntry<K,V> entry = (CacheEntry<K,V>)queue.poll(); in emptyQueue()
299 CacheEntry<K,V> currentEntry = cacheMap.remove(key); in emptyQueue()
325 for (Iterator<CacheEntry<K,V>> t = cacheMap.values().iterator(); in expungeExpiredEntries()
327 CacheEntry<K,V> entry = t.next(); in expungeExpiredEntries()
350 for (CacheEntry<K,V> entry : cacheMap.values()) { in clear()
364 CacheEntry<K,V> newEntry = newEntry(key, value, expirationTime, queue); in put()
365 CacheEntry<K,V> oldEntry = cacheMap.put(key, newEntry); in put()
373 Iterator<CacheEntry<K,V>> t = cacheMap.values().iterator(); in put()
374 CacheEntry<K,V> lruEntry = t.next(); in put()
[all …]
/libcore/ojluni/src/main/java/sun/nio/fs/
DPollingWatchService.java200 private static class CacheEntry {
204 CacheEntry(long lastModified, int lastTickCount) {
244 private Map<Path,CacheEntry> entries;
253 this.entries = new HashMap<Path,CacheEntry>();
261 entries.put(entry.getFileName(), new CacheEntry(lastModified, tickCount));
349 CacheEntry e = entries.get(entry.getFileName());
353 new CacheEntry(lastModified, tickCount));
396 Iterator<Map.Entry<Path,CacheEntry>> i = entries.entrySet().iterator();
398 Map.Entry<Path,CacheEntry> mapEntry = i.next();
399 CacheEntry entry = mapEntry.getValue();
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DMemoryCache.java76 protected sun.security.util.MemoryCache.CacheEntry<K, V> newEntry( in newEntry()
85 private final java.util.Map<K, sun.security.util.MemoryCache.CacheEntry<K, V>> cacheMap;
102 private static interface CacheEntry<K, V> { interface in MemoryCache
115 implements sun.security.util.MemoryCache.CacheEntry<K, V> {
147 implements sun.security.util.MemoryCache.CacheEntry<K, V> {