-
public interface ImageCacheStatsTrackerInterface for stats tracking for the image cache.
An implementation of this interface, passed to com.facebook.imagepipeline.core.ImagePipelineConfig, will be notified for each of the following cache events. Use this to keep cache stats for your app.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonBitmapCachePut(CacheKey cacheKey)Called whenever decoded images are put into the bitmap cache. abstract UnitonBitmapCacheHit(CacheKey cacheKey)Called on a bitmap cache hit. abstract UnitonBitmapCacheMiss(CacheKey cacheKey)Called on a bitmap cache miss. abstract UnitonMemoryCachePut(CacheKey cacheKey)Called whenever encoded images are put into the encoded memory cache. abstract UnitonMemoryCacheHit(CacheKey cacheKey)Called on an encoded memory cache hit. abstract UnitonMemoryCacheMiss(CacheKey cacheKey)Called on an encoded memory cache hit. abstract UnitonStagingAreaHit(CacheKey cacheKey)Called on an staging area hit. abstract UnitonStagingAreaMiss(CacheKey cacheKey)Called on a staging area miss hit. abstract UnitonDiskCacheHit(CacheKey cacheKey)Called on a disk cache hit. abstract UnitonDiskCacheMiss(CacheKey cacheKey)Called on a disk cache miss. abstract UnitonDiskCacheGetFail(CacheKey cacheKey)Called if an exception is thrown on a disk cache read. abstract UnitonDiskCachePut(CacheKey cacheKey)called whenever new files are written to disk abstract UnitregisterBitmapMemoryCache(MemoryCache<?, ?> bitmapMemoryCache)Registers a bitmap cache with this tracker. abstract UnitregisterEncodedMemoryCache(MemoryCache<?, ?> encodedMemoryCache)Registers an encoded memory cache with this tracker. -
-
Method Detail
-
onBitmapCachePut
abstract Unit onBitmapCachePut(CacheKey cacheKey)
Called whenever decoded images are put into the bitmap cache.
-
onBitmapCacheHit
abstract Unit onBitmapCacheHit(CacheKey cacheKey)
Called on a bitmap cache hit.
-
onBitmapCacheMiss
abstract Unit onBitmapCacheMiss(CacheKey cacheKey)
Called on a bitmap cache miss.
-
onMemoryCachePut
abstract Unit onMemoryCachePut(CacheKey cacheKey)
Called whenever encoded images are put into the encoded memory cache.
-
onMemoryCacheHit
abstract Unit onMemoryCacheHit(CacheKey cacheKey)
Called on an encoded memory cache hit.
-
onMemoryCacheMiss
abstract Unit onMemoryCacheMiss(CacheKey cacheKey)
Called on an encoded memory cache hit.
-
onStagingAreaHit
abstract Unit onStagingAreaHit(CacheKey cacheKey)
Called on an staging area hit.
The staging area stores encoded images. It gets the images before they are written to disk cache.
-
onStagingAreaMiss
abstract Unit onStagingAreaMiss(CacheKey cacheKey)
Called on a staging area miss hit.
-
onDiskCacheHit
abstract Unit onDiskCacheHit(CacheKey cacheKey)
Called on a disk cache hit.
-
onDiskCacheMiss
abstract Unit onDiskCacheMiss(CacheKey cacheKey)
Called on a disk cache miss.
-
onDiskCacheGetFail
abstract Unit onDiskCacheGetFail(CacheKey cacheKey)
Called if an exception is thrown on a disk cache read.
-
onDiskCachePut
abstract Unit onDiskCachePut(CacheKey cacheKey)
called whenever new files are written to disk
-
registerBitmapMemoryCache
abstract Unit registerBitmapMemoryCache(MemoryCache<?, ?> bitmapMemoryCache)
Registers a bitmap cache with this tracker.
Use this method if you need access to the cache itself to compile your stats.
-
registerEncodedMemoryCache
abstract Unit registerEncodedMemoryCache(MemoryCache<?, ?> encodedMemoryCache)
Registers an encoded memory cache with this tracker.
Use this method if you need access to the cache itself to compile your stats.
-
-
-
-