com.facebook.imagepipeline.core.ExecutorSupplier |
Known Indirect Subclasses |
Implementations of this interface are responsible for supplying the different executors used by different sections of the image pipeline.
A very basic implementation would supply a single thread pool for all four operations. It is
recommended that forLocalStorageRead()
and forLocalStorageWrite()
at least be
different, as their threads will be I/O-bound, rather than CPU-bound as the others are.
Implementations should return singleton objects from these methods.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract Executor |
forBackgroundTasks()
Executor used for background tasks such as image transcoding, resizing, rotating and post
processing.
| ||||||||||
abstract Executor |
forDecode()
Executor used for all decodes.
| ||||||||||
abstract Executor |
forLightweightBackgroundTasks()
Executor used for lightweight background operations, such as handing request off the main
thread.
| ||||||||||
abstract Executor |
forLocalStorageRead()
Executor used to do all disk reads, whether for disk cache or local files.
| ||||||||||
abstract Executor |
forLocalStorageWrite()
Executor used to do all disk writes, whether for disk cache or local files.
| ||||||||||
abstract Executor | forThumbnailProducer() | ||||||||||
abstract ScheduledExecutorService | scheduledExecutorServiceForBackgroundTasks() |
Executor used for background tasks such as image transcoding, resizing, rotating and post processing.
Executor used for all decodes.
Executor used for lightweight background operations, such as handing request off the main thread.
Executor used to do all disk reads, whether for disk cache or local files.
Executor used to do all disk writes, whether for disk cache or local files.