-
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 UnitproduceResults(Consumer<T> consumer, ProducerContext context)Start producing results for given context. -
-
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).
-
-
-
-