public class

DefaultExecutorSupplier

extends Object
implements ExecutorSupplier
java.lang.Object
   ↳ com.facebook.imagepipeline.core.DefaultExecutorSupplier

Class Overview

Basic implementation of ExecutorSupplier.

Provides one thread pool for the CPU-bound operations and another thread pool for the IO-bound operations.

Summary

Public Constructors
DefaultExecutorSupplier(int numCpuBoundThreads)
Public Methods
Executor forBackgroundTasks()
Executor used for background tasks such as image transcoding, resizing, rotating and post processing.
Executor forDecode()
Executor used for all decodes.
Executor forLightweightBackgroundTasks()
Executor used for lightweight background operations, such as handing request off the main thread.
Executor forLocalStorageRead()
Executor used to do all disk reads, whether for disk cache or local files.
Executor forLocalStorageWrite()
Executor used to do all disk writes, whether for disk cache or local files.
Executor forThumbnailProducer()
ScheduledExecutorService scheduledExecutorServiceForBackgroundTasks()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.core.ExecutorSupplier

Public Constructors

public DefaultExecutorSupplier (int numCpuBoundThreads)

Public Methods

public Executor forBackgroundTasks ()

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

public Executor forDecode ()

Executor used for all decodes.

public Executor forLightweightBackgroundTasks ()

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

public Executor forLocalStorageRead ()

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

public Executor forLocalStorageWrite ()

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

public Executor forThumbnailProducer ()

public ScheduledExecutorService scheduledExecutorServiceForBackgroundTasks ()