-
public interface ExecutorSupplierImplementations 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.
{@see Executor}
-
-
Method Summary
Modifier and Type Method Description abstract ExecutorforLocalStorageRead()Executor used to do all disk reads, whether for disk cache or local files. abstract ExecutorforLocalStorageWrite()Executor used to do all disk writes, whether for disk cache or local files. abstract ExecutorforDecode()Executor used for all decodes. abstract ExecutorforBackgroundTasks()Executor used for background tasks such as image transcoding, resizing, rotating and postprocessing. abstract ScheduledExecutorServicescheduledExecutorServiceForBackgroundTasks()abstract ExecutorforLightweightBackgroundTasks()Executor used for lightweight background operations, such as handing request off the mainthread. abstract ExecutorforThumbnailProducer()-
-
Method Detail
-
forLocalStorageRead
abstract Executor forLocalStorageRead()
Executor used to do all disk reads, whether for disk cache or local files.
-
forLocalStorageWrite
abstract Executor forLocalStorageWrite()
Executor used to do all disk writes, whether for disk cache or local files.
-
forBackgroundTasks
abstract Executor forBackgroundTasks()
Executor used for background tasks such as image transcoding, resizing, rotating and postprocessing.
-
scheduledExecutorServiceForBackgroundTasks
@Nullable() abstract ScheduledExecutorService scheduledExecutorServiceForBackgroundTasks()
-
forLightweightBackgroundTasks
abstract Executor forLightweightBackgroundTasks()
Executor used for lightweight background operations, such as handing request off the mainthread.
-
forThumbnailProducer
abstract Executor forThumbnailProducer()
-
-
-
-