public class

PriorityStarvingThrottlingProducer

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

Class Overview

Time based, priority starving throttling producer.

This means for any # of elements, all of the higher priority items will be run before any of the lower priority items. Within the groups, send order is the same as order they were given to the class. (based on nano time).

Summary

Constants
String PRODUCER_NAME
Public Constructors
PriorityStarvingThrottlingProducer(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: "PriorityStarvingThrottlingProducer"

Public Constructors

public PriorityStarvingThrottlingProducer (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).