public interface

ExecutorSupplier

com.facebook.imagepipeline.core.ExecutorSupplier

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 forBackground()
Executor used for background operations, such as postprocessing.
abstract Executor forDecode()
Executor used for all decodes.
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 forTransform()
Executor used for all image transformations, such as transcoding, resizing, and rotating.

Public Methods

public abstract Executor forBackground ()

Executor used for background operations, such as postprocessing.

public abstract Executor forDecode ()

Executor used for all decodes.

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.

public abstract Executor forTransform ()

Executor used for all image transformations, such as transcoding, resizing, and rotating.