Package 

Class MultiplexProducer

  • 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.

    • Method Summary

      Modifier and Type Method Description
      void produceResults(Consumer<T> consumer, ProducerContext context)
      • Methods inherited from class com.facebook.imagepipeline.producers.Producer

        produceResults
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait