java.lang.Object | |
↳ | com.facebook.imagepipeline.producers.DiskCacheReadProducer |
Disk cache read producer.
This producer looks in the disk cache for the requested image. If the image is found, then it is passed to the consumer. If the image is not found, then the request is passed to the next producer in the sequence. Any results that the producer returns are passed to the consumer.
This implementation delegates disk cache requests to BufferedDiskCache.
This producer is currently used only if the media variations experiment is turned on, to enable another producer to sit between cache read and write.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENCODED_IMAGE_SIZE | ||||||||||
String | EXTRA_CACHED_VALUE_FOUND | ||||||||||
String | PRODUCER_NAME |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DiskCacheReadProducer(BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory, Producer<EncodedImage> inputProducer) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.imagepipeline.producers.Producer
|