public class

PriorityThreadFactory

extends Object
implements ThreadFactory
java.lang.Object
   ↳ com.facebook.imagepipeline.core.PriorityThreadFactory

Class Overview

ThreadFactory that applies a priority to the threads it creates.

Summary

Public Constructors
PriorityThreadFactory(int threadPriority)
Creates a new PriorityThreadFactory with a given priority.
PriorityThreadFactory(int threadPriority, String prefix, boolean addThreadNumber)
Public Methods
Thread newThread(Runnable runnable)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.concurrent.ThreadFactory

Public Constructors

public PriorityThreadFactory (int threadPriority)

Creates a new PriorityThreadFactory with a given priority.

This value should be set to a value compatible with setThreadPriority(int), not setPriority(int).

public PriorityThreadFactory (int threadPriority, String prefix, boolean addThreadNumber)

Public Methods

public Thread newThread (Runnable runnable)