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 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.

Summary

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

Constants

public static final String ENCODED_IMAGE_SIZE

Constant Value: "encodedImageSize"

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 (BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory, Producer<EncodedImage> inputProducer)

Public Methods

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