Interface CacheDataSource.EventListener

    • Method Detail

      • onCachedBytesRead

        void onCachedBytesRead​(long cacheSizeBytes,
                               long cachedBytesRead)
        Called when bytes have been read from the cache.
        cacheSizeBytes - Current cache size in bytes.
        cachedBytesRead - Total bytes read from the cache since this method was last called.
      • onCacheIgnored

        void onCacheIgnored​(@CacheIgnoredReason
                            int reason)
        Called when the current request ignores cache.
        reason - Reason cache is bypassed.