public class

DiskCacheWriteProducer

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

Class Overview

Disk cache write producer.

This producer passes through to the next producer in the sequence, as long as the permitted request level reaches beyond the disk cache. Otherwise this is a passive producer.

The final result passed to the consumer put into the disk cache as well as being passed on.

Disk cache interactions are delegated 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

Public Constructors
DiskCacheWriteProducer(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

Public Constructors

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

Public Methods

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