Android APIs
Added in API level 21
public static interface

ForkJoinPool.ForkJoinWorkerThreadFactory

java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory

Class Overview

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.

Summary

Public Methods
abstract ForkJoinWorkerThread newThread(ForkJoinPool pool)
Returns a new worker thread operating in the given pool.

Public Methods

public abstract ForkJoinWorkerThread newThread (ForkJoinPool pool)

Added in API level 21

Returns a new worker thread operating in the given pool.

Parameters
pool the pool this thread works in
Returns
  • the new worker thread
Throws
NullPointerException if the pool is null