public class

ThrottlingProducer

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

Class Overview

Only permits a configurable number of requests to be kicked off simultaneously. If that number is exceeded, then requests are queued up and kicked off once other requests complete.

Summary

Constants
String PRODUCER_NAME
Public Constructors
ThrottlingProducer(int maxSimultaneousRequests, Executor executor, Producer<T> inputProducer)
Public Methods
void produceResults(Consumer<T> consumer, ProducerContext producerContext)
Start producing results for given context.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String PRODUCER_NAME

Constant Value: "ThrottlingProducer"

Public Constructors

public ThrottlingProducer (int maxSimultaneousRequests, Executor executor, Producer<T> inputProducer)

Public Methods

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

Start producing results for given context. Provided consumer is notified whenever progress is made (new value is ready or error occurs).