Back to Fresco

DiskCacheReadProducer

docs/javadoc/reference/com/facebook/imagepipeline/producers/DiskCacheReadProducer.html

3.6.022.2 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]

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
String
String
Public Constructors
Public Methods
void

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.producers.Producer

| abstract void | produceResults(Consumer<T> consumer, ProducerContext context) Start producing results for given context. |

|

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)

+Generated by Doclava. +