Package 

Interface ImageCacheStatsTracker

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onBitmapCachePut(CacheKey cacheKey) Called whenever decoded images are put into the bitmap cache.
      abstract Unit onBitmapCacheHit(CacheKey cacheKey) Called on a bitmap cache hit.
      abstract Unit onBitmapCacheMiss(CacheKey cacheKey) Called on a bitmap cache miss.
      abstract Unit onMemoryCachePut(CacheKey cacheKey) Called whenever encoded images are put into the encoded memory cache.
      abstract Unit onMemoryCacheHit(CacheKey cacheKey) Called on an encoded memory cache hit.
      abstract Unit onMemoryCacheMiss(CacheKey cacheKey) Called on an encoded memory cache hit.
      abstract Unit onStagingAreaHit(CacheKey cacheKey) Called on an staging area hit.
      abstract Unit onStagingAreaMiss(CacheKey cacheKey) Called on a staging area miss hit.
      abstract Unit onDiskCacheHit(CacheKey cacheKey) Called on a disk cache hit.
      abstract Unit onDiskCacheMiss(CacheKey cacheKey) Called on a disk cache miss.
      abstract Unit onDiskCacheGetFail(CacheKey cacheKey) Called if an exception is thrown on a disk cache read.
      abstract Unit onDiskCachePut(CacheKey cacheKey) called whenever new files are written to disk
      abstract Unit registerBitmapMemoryCache(MemoryCache<?, ?> bitmapMemoryCache) Registers a bitmap cache with this tracker.
      abstract Unit registerEncodedMemoryCache(MemoryCache<?, ?> encodedMemoryCache) Registers an encoded memory cache with this tracker.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onBitmapCachePut

         abstract Unit onBitmapCachePut(CacheKey cacheKey)

        Called whenever decoded images are put into the bitmap cache.

      • onMemoryCachePut

         abstract Unit onMemoryCachePut(CacheKey cacheKey)

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

      • onMemoryCacheHit

         abstract Unit onMemoryCacheHit(CacheKey cacheKey)

        Called on an encoded memory cache hit.

      • onMemoryCacheMiss

         abstract Unit onMemoryCacheMiss(CacheKey cacheKey)

        Called on an encoded memory cache hit.

      • onStagingAreaHit

         abstract Unit 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.

      • onStagingAreaMiss

         abstract Unit onStagingAreaMiss(CacheKey cacheKey)

        Called on a staging area miss hit.

      • onDiskCacheHit

         abstract Unit onDiskCacheHit(CacheKey cacheKey)

        Called on a disk cache hit.

      • onDiskCacheMiss

         abstract Unit onDiskCacheMiss(CacheKey cacheKey)

        Called on a disk cache miss.

      • onDiskCacheGetFail

         abstract Unit onDiskCacheGetFail(CacheKey cacheKey)

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

      • onDiskCachePut

         abstract Unit onDiskCachePut(CacheKey cacheKey)

        called whenever new files are written to disk

      • registerBitmapMemoryCache

         abstract Unit 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.

      • registerEncodedMemoryCache

         abstract Unit 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.