public interface

ExecutorSupplier

com.facebook.imagepipeline.core.ExecutorSupplier
Known Indirect Subclasses

Class Overview

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.

See Also
  • Executor

Summary

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.

Public Methods

public abstract Executor forBackgroundTasks ()

Executor used for background tasks such as image transcoding, resizing, rotating and post processing.

public abstract Executor forDecode ()

Executor used for all decodes.

public abstract Executor forLightweightBackgroundTasks ()

Executor used for lightweight background operations, such as handing request off the main thread.

public abstract Executor forLocalStorageRead ()

Executor used to do all disk reads, whether for disk cache or local files.

public abstract Executor forLocalStorageWrite ()

Executor used to do all disk writes, whether for disk cache or local files.