com.facebook.imagepipeline.cache.ImageCacheStatsTracker |
Known Indirect Subclasses |
Interface for stats tracking for the image cache.
An implementation of this interface, passed to ImagePipelineConfig
, will be notified for each of the following
cache events. Use this to keep cache stats for your app.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onBitmapCacheHit(CacheKey cacheKey)
Called on a bitmap cache hit.
| ||||||||||
abstract void |
onBitmapCacheMiss(CacheKey cacheKey)
Called on a bitmap cache miss.
| ||||||||||
abstract void |
onBitmapCachePut(CacheKey cacheKey)
Called whenever decoded images are put into the bitmap cache.
| ||||||||||
abstract void |
onDiskCacheGetFail(CacheKey cacheKey)
Called if an exception is thrown on a disk cache read.
| ||||||||||
abstract void |
onDiskCacheHit(CacheKey cacheKey)
Called on a disk cache hit.
| ||||||||||
abstract void |
onDiskCacheMiss(CacheKey cacheKey)
Called on a disk cache miss.
| ||||||||||
abstract void |
onDiskCachePut(CacheKey cacheKey)
called whenever new files are written to disk
| ||||||||||
abstract void |
onMemoryCacheHit(CacheKey cacheKey)
Called on an encoded memory cache hit.
| ||||||||||
abstract void |
onMemoryCacheMiss(CacheKey cacheKey)
Called on an encoded memory cache hit.
| ||||||||||
abstract void |
onMemoryCachePut(CacheKey cacheKey)
Called whenever encoded images are put into the encoded memory cache.
| ||||||||||
abstract void |
onStagingAreaHit(CacheKey cacheKey)
Called on an staging area hit.
| ||||||||||
abstract void |
onStagingAreaMiss(CacheKey cacheKey)
Called on a staging area miss hit.
| ||||||||||
abstract void |
registerBitmapMemoryCache(MemoryCache<?, ?> bitmapMemoryCache)
Registers a bitmap cache with this tracker.
| ||||||||||
abstract void |
registerEncodedMemoryCache(MemoryCache<?, ?> encodedMemoryCache)
Registers an encoded memory cache with this tracker.
|
Called whenever decoded images are put into the bitmap cache.
Called if an exception is thrown on a disk cache read.
called whenever new files are written to disk
Called whenever encoded images are put into the encoded memory cache.
Called on an staging area hit.
The staging area stores encoded images. It gets the images before they are written to disk cache.
Registers a bitmap cache with this tracker.
Use this method if you need access to the cache itself to compile your stats.
Registers an encoded memory cache with this tracker.
Use this method if you need access to the cache itself to compile your stats.