-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.producers.Producer
@ThreadSafe() public abstract class MultiplexProducer<K, T extends Closeable> implements Producer<T>
Producer for combining multiple identical requests into a single request.
Requests using the same key will be combined into a single request. This request is only cancelled when all underlying requests are cancelled, and returns values to all underlying consumers. If the request has already return one or more results but has not finished, then any requests with the same key will have the most recent result returned to them immediately.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringEXTRAS_STARTED_AS_PREFETCH
-
Method Summary
Modifier and Type Method Description voidproduceResults(Consumer<T> consumer, ProducerContext context)-
-
Method Detail
-
produceResults
void produceResults(Consumer<T> consumer, ProducerContext context)
-
-
-
-