public interface

ImageCacheStatsTracker

com.facebook.imagepipeline.cache.ImageCacheStatsTracker
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract void onBitmapCacheHit(CacheKey cacheKey)
Called on a bitmap cache hit.
abstract void onBitmapCacheMiss()
Called on a bitmap cache miss.
abstract void onBitmapCachePut()
Called whenever decoded images are put into the bitmap cache.
abstract void onDiskCacheGetFail()
Called if an exception is thrown on a disk cache read.
abstract void onDiskCacheHit()
Called on a disk cache hit.
abstract void onDiskCacheMiss()
Called on a disk cache miss.
abstract void onMemoryCacheHit(CacheKey cacheKey)
Called on an encoded memory cache hit.
abstract void onMemoryCacheMiss()
Called on an encoded memory cache hit.
abstract void onMemoryCachePut()
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()
Called on a staging area miss hit.
abstract void registerBitmapMemoryCache(CountingMemoryCache<?, ?> bitmapMemoryCache)
Registers a bitmap cache with this tracker.
abstract void registerEncodedMemoryCache(CountingMemoryCache<?, ?> encodedMemoryCache)
Registers an encoded memory cache with this tracker.

Public Methods

public abstract void onBitmapCacheHit (CacheKey cacheKey)

Called on a bitmap cache hit.

public abstract void onBitmapCacheMiss ()

Called on a bitmap cache miss.

public abstract void onBitmapCachePut ()

Called whenever decoded images are put into the bitmap cache.

public abstract void onDiskCacheGetFail ()

Called if an exception is thrown on a disk cache read.

public abstract void onDiskCacheHit ()

Called on a disk cache hit.

public abstract void onDiskCacheMiss ()

Called on a disk cache miss.

public abstract void onMemoryCacheHit (CacheKey cacheKey)

Called on an encoded memory cache hit.

public abstract void onMemoryCacheMiss ()

Called on an encoded memory cache hit.

public abstract void onMemoryCachePut ()

Called whenever encoded images are put into the encoded memory cache.

public abstract void 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.

public abstract void onStagingAreaMiss ()

Called on a staging area miss hit.

public abstract void registerBitmapMemoryCache (CountingMemoryCache<?, ?> bitmapMemoryCache)

Registers a bitmap cache with this tracker.

Use this method if you need access to the cache itself to compile your stats.

public abstract void registerEncodedMemoryCache (CountingMemoryCache<?, ?> encodedMemoryCache)

Registers an encoded memory cache with this tracker.

Use this method if you need access to the cache itself to compile your stats.