Uses of Interface
java.util.concurrent.ThreadFactory
Packages that use ThreadFactory
Package
Description
Provides reference-object classes, which support a limited degree
 of interaction with the garbage collector.
Defines channels, which represent connections to entities that are capable of
 performing I/O operations, such as files and sockets; defines selectors, for
 multiplexed, non-blocking I/O operations.
Service-provider classes for the 
java.nio.channels
 package.Utility classes commonly useful in concurrent programming.
- 
Uses of ThreadFactory in java.lang.refMethods in java.lang.ref with parameters of type ThreadFactoryModifier and TypeMethodDescriptionstatic CleanerCleaner.create(ThreadFactory threadFactory)Returns a newCleanerusing aThreadfrom theThreadFactory.
- 
Uses of ThreadFactory in java.nio.channelsMethods in java.nio.channels with parameters of type ThreadFactoryModifier and TypeMethodDescriptionstatic AsynchronousChannelGroupAsynchronousChannelGroup.withFixedThreadPool(int nThreads, ThreadFactory threadFactory)Creates an asynchronous channel group with a fixed thread pool.
- 
Uses of ThreadFactory in java.nio.channels.spiMethods in java.nio.channels.spi with parameters of type ThreadFactoryModifier and TypeMethodDescriptionabstract AsynchronousChannelGroupAsynchronousChannelProvider.openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory)Constructs a new asynchronous channel group with a fixed thread pool.
- 
Uses of ThreadFactory in java.util.concurrentMethods in java.util.concurrent that return ThreadFactoryModifier and TypeMethodDescriptionstatic ThreadFactoryExecutors.defaultThreadFactory()Returns a default thread factory used to create new threads.ThreadPoolExecutor.getThreadFactory()Returns the thread factory used to create new threads.static ThreadFactoryExecutors.privilegedThreadFactory()Returns a thread factory used to create new threads that have the same permissions as the current thread.Methods in java.util.concurrent with parameters of type ThreadFactoryModifier and TypeMethodDescriptionstatic ExecutorServiceExecutors.newCachedThreadPool(ThreadFactory threadFactory)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.static ExecutorServiceExecutors.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.static ScheduledExecutorServiceExecutors.newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.static ExecutorServiceExecutors.newSingleThreadExecutor(ThreadFactory threadFactory)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.static ScheduledExecutorServiceExecutors.newSingleThreadScheduledExecutor(ThreadFactory threadFactory)Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.voidThreadPoolExecutor.setThreadFactory(ThreadFactory threadFactory)Sets the thread factory used to create new threads.Constructors in java.util.concurrent with parameters of type ThreadFactoryModifierConstructorDescriptionScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory)Creates a newScheduledThreadPoolExecutorwith the given initial parameters.ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)Creates a newScheduledThreadPoolExecutorwith the given initial parameters.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)Creates a newThreadPoolExecutorwith the given initial parameters and default rejected execution handler.ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)Creates a newThreadPoolExecutorwith the given initial parameters.