public class

DiskCacheReadProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.DiskCacheReadProducer

Class Overview

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.

Summary

Constants
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
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String EXTRA_CACHED_VALUE_FOUND

Constant Value: "cached_value_found"

public static final String PRODUCER_NAME

Constant Value: "DiskCacheProducer"

Public Constructors

public DiskCacheReadProducer (Producer<EncodedImage> inputProducer, DiskCachePolicy diskCachePolicy)

Public Methods

public void produceResults (Consumer<EncodedImage> consumer, ProducerContext producerContext)