JavaTM 2 Platform
Standard Ed. 5.0

Uses of Interface
java.util.concurrent.ThreadFactory

Packages that use ThreadFactory
java.util.concurrent Utility classes commonly useful in concurrent programming. 
 

Uses of ThreadFactory in java.util.concurrent
 

Methods in java.util.concurrent that return ThreadFactory
static ThreadFactory Executors.defaultThreadFactory()
          Returns a default thread factory used to create new threads.
 ThreadFactory ThreadPoolExecutor.getThreadFactory()
          Returns the thread factory used to create new threads.
static ThreadFactory Executors.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 ThreadFactory
static ExecutorService Executors.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 ExecutorService Executors.newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
          Creates a thread pool that reuses a fixed set of threads operating off a shared unbounded queue, using the provided ThreadFactory to create new threads when needed.
static 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.
static ExecutorService Executors.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 ScheduledExecutorService Executors.newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
          Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.
 void ThreadPoolExecutor.setThreadFactory(ThreadFactory threadFactory)
          Sets the thread factory used to create new threads.
 

Constructors in java.util.concurrent with parameters of type ThreadFactory
ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory)
          Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
ScheduledThreadPoolExecutor(int corePoolSize, ThreadFactory threadFactory, RejectedExecutionHandler handler)
          Creates a new ScheduledThreadPoolExecutor with the given initial parameters.
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)
          Creates a new ThreadPoolExecutor with the given initial parameters.
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)
          Creates a new ThreadPoolExecutor with the given initial parameters.
 


JavaTM 2 Platform
Standard Ed. 5.0

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.