-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.producers.Producer
public class PriorityStarvingThrottlingProducer<T> implements Producer<T>
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).
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringPRODUCER_NAME
-
Constructor Summary
Constructors Constructor Description PriorityStarvingThrottlingProducer(int maxSimultaneousRequests, Executor executor, Producer<T> inputProducer)
-
Method Summary
Modifier and Type Method Description voidproduceResults(Consumer<T> consumer, ProducerContext producerContext)-
-
Method Detail
-
produceResults
void produceResults(Consumer<T> consumer, ProducerContext producerContext)
-
-
-
-