Skip to content

Most visited

Recently visited

added in API level 21


public static interface ForkJoinPool.ForkJoinWorkerThreadFactory


Factory for creating new ForkJoinWorkerThreads. A ForkJoinWorkerThreadFactory must be defined and used for ForkJoinWorkerThread subclasses that extend base functionality or initialize threads with different contexts.


Public methods

abstract ForkJoinWorkerThread newThread(ForkJoinPool pool)

Returns a new worker thread operating in the given pool.

Public methods


added in API level 21
ForkJoinWorkerThread newThread (ForkJoinPool pool)

Returns a new worker thread operating in the given pool.

pool ForkJoinPool: the pool this thread works in

ForkJoinWorkerThread the new worker thread, or null if the request to create a thread is rejected

NullPointerException if the pool is null
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)