java.lang.Object |
↳ |
com.facebook.imagepipeline.producers.ThrottlingProducer<T> |
Class Overview
Only permits a configurable number of requests to be kicked off simultaneously. If that number is
exceeded, then requests are queued up and kicked off once other requests complete.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.imagepipeline.producers.Producer
|
Constants
public
static
final
String
PRODUCER_NAME
Constant Value:
"ThrottlingProducer"
Public Constructors
public
ThrottlingProducer
(int maxSimultaneousRequests, Executor executor, Producer<T> inputProducer)
Public Methods
public
void
produceResults
(Consumer<T> consumer, ProducerContext producerContext)
Start producing results for given context. Provided consumer is notified whenever progress is
made (new value is ready or error occurs).