public class

NoOpImageCacheStatsTracker

extends Object
implements ImageCacheStatsTracker
java.lang.Object
   ↳ com.facebook.imagepipeline.cache.NoOpImageCacheStatsTracker

Class Overview

Class that does no stats tracking at all

Summary

Public Methods
synchronized static NoOpImageCacheStatsTracker getInstance()
void onBitmapCacheHit(CacheKey cacheKey)
Called on a bitmap cache hit.
void onBitmapCacheMiss()
Called on a bitmap cache miss.
void onBitmapCachePut()
Called whenever decoded images are put into the bitmap cache.
void onDiskCacheGetFail()
Called if an exception is thrown on a disk cache read.
void onDiskCacheHit()
Called on a disk cache hit.
void onDiskCacheMiss()
Called on a disk cache miss.
void onMemoryCacheHit(CacheKey cacheKey)
Called on an encoded memory cache hit.
void onMemoryCacheMiss()
Called on an encoded memory cache hit.
void onMemoryCachePut()
Called whenever encoded images are put into the encoded memory cache.
void onStagingAreaHit(CacheKey cacheKey)
Called on an staging area hit.
void onStagingAreaMiss()
Called on a staging area miss hit.
void registerBitmapMemoryCache(CountingMemoryCache<?, ?> bitmapMemoryCache)
Registers a bitmap cache with this tracker.
void registerEncodedMemoryCache(CountingMemoryCache<?, ?> encodedMemoryCache)
Registers an encoded memory cache with this tracker.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.cache.ImageCacheStatsTracker

Public Methods

public static synchronized NoOpImageCacheStatsTracker getInstance ()

public void onBitmapCacheHit (CacheKey cacheKey)

Called on a bitmap cache hit.

public void onBitmapCacheMiss ()

Called on a bitmap cache miss.

public void onBitmapCachePut ()

Called whenever decoded images are put into the bitmap cache.

public void onDiskCacheGetFail ()

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

public void onDiskCacheHit ()

Called on a disk cache hit.

public void onDiskCacheMiss ()

Called on a disk cache miss.

public void onMemoryCacheHit (CacheKey cacheKey)

Called on an encoded memory cache hit.

public void onMemoryCacheMiss ()

Called on an encoded memory cache hit.

public void onMemoryCachePut ()

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

public 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 void onStagingAreaMiss ()

Called on a staging area miss hit.

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