Package com.google.android.exoplayer2.upstream.cache
-
Interface Summary Interface Description Cache A cache that supports partial caching of resources.Cache.Listener Listener ofCache
events.CacheDataSource.EventListener Listener ofCacheDataSource
events.CacheEvictor Evicts data from aCache
.CacheKeyFactory Factory for cache keys.CacheWriter.ProgressListener Receives progress updates during cache operations.ContentMetadata Interface for an immutable snapshot of keyed metadata. -
Class Summary Class Description CacheDataSink Writes data into a cache.CacheDataSink.Factory DataSink.Factory
forCacheDataSink
instances.CacheDataSource ADataSource
that reads and writes aCache
.CacheDataSource.Factory DataSource.Factory
forCacheDataSource
instances.CacheSpan Defines a span of data that may or may not be cached (as indicated byCacheSpan.isCached
).CacheWriter Caching related utility methods.ContentMetadataMutations Defines multiple mutations on metadata value which are applied atomically.DefaultContentMetadata Default implementation ofContentMetadata
.LeastRecentlyUsedCacheEvictor Evicts least recently used cache files first.NoOpCacheEvictor Evictor that doesn't ever evict cache files.SimpleCache ACache
implementation that maintains an in-memory representation. -
Exception Summary Exception Description Cache.CacheException Thrown when an error is encountered when writing data.CacheDataSink.CacheDataSinkException Thrown when anIOException
is encountered when writing data to the sink. -
Annotation Types Summary Annotation Type Description CacheDataSource.CacheIgnoredReason Reasons the cache may be ignored.CacheDataSource.Flags Flags controlling the CacheDataSource's behavior.