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 interactions to a provided DiskCachePolicy
.
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(Producer<EncodedImage> inputProducer, DiskCachePolicy diskCachePolicy) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |