public static interface CacheDataSource.EventListener
CacheDataSource events.| Modifier and Type | Method and Description |
|---|---|
void |
onCachedBytesRead(long cacheSizeBytes,
long cachedBytesRead)
Called when bytes have been read from the cache.
|
void |
onCacheIgnored(int reason)
Called when the current request ignores cache.
|
void onCachedBytesRead(long cacheSizeBytes,
long cachedBytesRead)
cacheSizeBytes - Current cache size in bytes.cachedBytesRead - Total bytes read from the cache since this method was last called.void onCacheIgnored(@CacheDataSource.CacheIgnoredReason int reason)
reason - Reason cache is bypassed.