-
- All Implemented Interfaces:
-
com.facebook.cache.common.HasDebugData,com.facebook.common.memory.MemoryTrimmable,com.facebook.imagepipeline.cache.MemoryCache
public class InstrumentedMemoryCache<K, V> implements MemoryCache<K, V>
-
-
Constructor Summary
Constructors Constructor Description InstrumentedMemoryCache(MemoryCache<K, V> delegate, MemoryCacheTracker tracker)
-
Method Summary
Modifier and Type Method Description CloseableReference<V>get(K key)Vinspect(K key)voidprobe(K key)CloseableReference<V>cache(K key, CloseableReference<V> value)intremoveAll(Predicate<K> predicate)booleancontains(Predicate<K> predicate)booleancontains(K key)intgetCount()intgetSizeInBytes()voidtrim(MemoryTrimType trimType)StringgetDebugData()-
Methods inherited from class com.facebook.imagepipeline.cache.MemoryCache
cache, contains, get, getCount, getSizeInBytes, inspect, probe, removeAll -
Methods inherited from class com.facebook.common.memory.MemoryTrimmable
trim -
Methods inherited from class com.facebook.cache.common.HasDebugData
getDebugData -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
InstrumentedMemoryCache
InstrumentedMemoryCache(MemoryCache<K, V> delegate, MemoryCacheTracker tracker)
-
-
Method Detail
-
getCount
int getCount()
-
getSizeInBytes
int getSizeInBytes()
-
trim
void trim(MemoryTrimType trimType)
-
getDebugData
@Nullable() String getDebugData()
-
-
-
-