Uses of Interface java.util.concurrent.ThreadFactory

Uses in package java.util.concurrent

Constructors with parameter type java.util.concurrent.ThreadFactory

Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
ThreadPoolExecutor.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory)
Creates a new ThreadPoolExecutor with the given initial parameters and default rejected execution handler.
ThreadPoolExecutor.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
Creates a new ThreadPoolExecutor with the given initial parameters.

Methods with parameter type java.util.concurrent.ThreadFactory

ExecutorService
Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available, and uses the provided ThreadFactory to create new threads when needed.
ExecutorService
Executors.newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue, using the provided ThreadFactory to create new threads when needed.
ScheduledExecutorService
Executors.newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.
ExecutorService
Creates an Executor that uses a single worker thread operating off an unbounded queue, and uses the provided ThreadFactory to create a new thread when needed.
ScheduledExecutorService
Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.
void
Sets the thread factory used to create new threads.

Methods with return type java.util.concurrent.ThreadFactory

ThreadFactory
Returns a default thread factory used to create new threads.
ThreadFactory
Returns the thread factory used to create new threads.
ThreadFactory
Returns a thread factory used to create new threads that have the same permissions as the current thread.