Java java.util.concurrent Executors fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent Executors fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent Executors.

The text is from its open source code.

Method

Callablecallable(Runnable task)
Returns a Callable object that, when called, runs the given task and returns null .
Callablecallable(final PrivilegedAction action)
Returns a Callable object that, when called, runs the given privileged action and returns its result.
Callablecallable(final PrivilegedExceptionAction action)
Returns a Callable object that, when called, runs the given privileged exception action and returns its result.
Callablecallable(Runnable task, T result)
Returns a Callable object that, when called, runs the given task and returns the given result.
ThreadFactorydefaultThreadFactory()
Returns a default thread factory used to create new threads.
ExecutorServicenewCachedThreadPool()
Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available.
ExecutorServicenewCachedThreadPool(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.
ExecutorServicenewFixedThreadPool(int nThreads)
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue.
ExecutorServicenewFixedThreadPool(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.
ScheduledExecutorServicenewScheduledThreadPool(int corePoolSize)
Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.
ScheduledExecutorServicenewScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.
ExecutorServicenewSingleThreadExecutor()
Creates an Executor that uses a single worker thread operating off an unbounded queue.
ExecutorServicenewSingleThreadExecutor(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.
ScheduledExecutorServicenewSingleThreadScheduledExecutor()
Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.
ScheduledExecutorServicenewSingleThreadScheduledExecutor(ThreadFactory threadFactory)
Creates a single-threaded executor that can schedule commands to run after a given delay, or to execute periodically.
ExecutorServicenewWorkStealingPool(int parallelism)
Creates a thread pool that maintains enough threads to support the given parallelism level, and may use multiple queues to reduce contention.
ExecutorServicenewWorkStealingPool()
Creates a work-stealing thread pool using the number of Runtime#availableProcessors available processors as its target parallelism level.
ScheduledExecutorServiceunconfigurableScheduledExecutorService( ScheduledExecutorService executor)
Returns an object that delegates all defined ScheduledExecutorService methods to the given executor, but not any other methods that might otherwise be accessible using casts.