public class

ThreadHandoffProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.ThreadHandoffProducer<T>

Class Overview

Uses ExecutorService to move further computation to different thread

Summary

Constants
String PRODUCER_NAME
Public Constructors
ThreadHandoffProducer(Producer<T> inputProducer, ThreadHandoffProducerQueue inputThreadHandoffProducerQueue)
Public Methods
void produceResults(Consumer<T> consumer, ProducerContext context)
Start producing results for given context.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String PRODUCER_NAME

Constant Value: "BackgroundThreadHandoffProducer"

Public Constructors

public ThreadHandoffProducer (Producer<T> inputProducer, ThreadHandoffProducerQueue inputThreadHandoffProducerQueue)

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