public abstract class


extends Object
implements Producer<T>
   ↳ com.facebook.imagepipeline.producers.MultiplexProducer<K, T extends>
Known Direct Subclasses

Class Overview

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.


Protected Constructors
MultiplexProducer(Producer<T> inputProducer)
Public Methods
void produceResults(Consumer<T> consumer, ProducerContext context)
Start producing results for given context.
Protected Methods
abstract T cloneOrNull(T object)
abstract K getKey(ProducerContext producerContext)
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Protected Constructors

protected MultiplexProducer (Producer<T> inputProducer)

Public Methods

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

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

Protected Methods

protected abstract T cloneOrNull (T object)

protected abstract K getKey (ProducerContext producerContext)