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(CacheKey cacheKey)
Called on a bitmap cache miss.
void onBitmapCachePut(CacheKey cacheKey)
Called whenever decoded images are put into the bitmap cache.
void onDiskCacheGetFail(CacheKey cacheKey)
Called if an exception is thrown on a disk cache read.
void onDiskCacheHit(CacheKey cacheKey)
Called on a disk cache hit.
void onDiskCacheMiss(CacheKey cacheKey)
Called on a disk cache miss.
void onDiskCachePut(CacheKey cacheKey)
called whenever new files are written to disk
void onMemoryCacheHit(CacheKey cacheKey)
Called on an encoded memory cache hit.
void onMemoryCacheMiss(CacheKey cacheKey)
Called on an encoded memory cache hit.
void onMemoryCachePut(CacheKey cacheKey)
Called whenever encoded images are put into the encoded memory cache.
void onStagingAreaHit(CacheKey cacheKey)
Called on an staging area hit.
void onStagingAreaMiss(CacheKey cacheKey)
Called on a staging area miss hit.
void registerBitmapMemoryCache(MemoryCache<?, ?> bitmapMemoryCache)
Registers a bitmap cache with this tracker.
void registerEncodedMemoryCache(MemoryCache<?, ?> 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 (CacheKey cacheKey)

Called on a bitmap cache miss.

public void onBitmapCachePut (CacheKey cacheKey)

Called whenever decoded images are put into the bitmap cache.

public void onDiskCacheGetFail (CacheKey cacheKey)

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

public void onDiskCacheHit (CacheKey cacheKey)

Called on a disk cache hit.

public void onDiskCacheMiss (CacheKey cacheKey)

Called on a disk cache miss.

public void onDiskCachePut (CacheKey cacheKey)

called whenever new files are written to disk

public void onMemoryCacheHit (CacheKey cacheKey)

Called on an encoded memory cache hit.

public void onMemoryCacheMiss (CacheKey cacheKey)

Called on an encoded memory cache hit.

public void onMemoryCachePut (CacheKey cacheKey)

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

Called on a staging area miss hit.

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