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(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.

Public Methods

public abstract void onBitmapCacheHit (CacheKey cacheKey)

Called on a bitmap cache hit.

public abstract void onBitmapCacheMiss (CacheKey cacheKey)

Called on a bitmap cache miss.

public abstract void onBitmapCachePut (CacheKey cacheKey)

Called whenever decoded images are put into the bitmap cache.

public abstract void onDiskCacheGetFail (CacheKey cacheKey)

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

public abstract void onDiskCacheHit (CacheKey cacheKey)

Called on a disk cache hit.

public abstract void onDiskCacheMiss (CacheKey cacheKey)

Called on a disk cache miss.

public abstract void onDiskCachePut (CacheKey cacheKey)

called whenever new files are written to disk

public abstract void onMemoryCacheHit (CacheKey cacheKey)

Called on an encoded memory cache hit.

public abstract void onMemoryCacheMiss (CacheKey cacheKey)

Called on an encoded memory cache hit.

public abstract void onMemoryCachePut (CacheKey cacheKey)

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 (CacheKey cacheKey)

Called on a staging area miss hit.

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

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