Package 

Interface Producer


  • 
    public interface Producer<T extends Object>
    
                        

    Building block for image processing in the image pipeline.

    Execution of image request consists of multiple different tasks such as network fetch, disk caching, memory caching, decoding, applying transformations etc. Producer<T> represents single task whose result is an instance of T. Breaking entire request into sequence of Producers allows us to construct different requests while reusing the same blocks.

    </T> * Producer supports multiple values and streaming.
    • Method Summary

      Modifier and Type Method Description
      abstract Unit produceResults(Consumer<T> consumer, ProducerContext context) Start producing results for given context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • produceResults

         abstract Unit 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).