| Package | Description |
|---|---|
| net.tascalate.concurrent | |
| net.tascalate.concurrent.var |
| Modifier and Type | Class and Description |
|---|---|
class |
ThreadPoolTaskExecutor
Concrete implementation of
TaskExecutorService interface. |
| Modifier and Type | Method and Description |
|---|---|
static TaskExecutorService |
TaskExecutors.adapt(ExecutorService executorService) |
static TaskExecutorService |
TaskExecutors.newCachedThreadPool()
Creates a thread pool that creates new threads as needed, but will reuse
previously constructed threads when they are available.
|
static TaskExecutorService |
TaskExecutors.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 TaskExecutorService |
TaskExecutors.newFixedThreadPool(int nThreads)
Creates a thread pool that reuses a fixed number of threads operating off
a shared unbounded queue.
|
static TaskExecutorService |
TaskExecutors.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 TaskExecutorService |
TaskExecutors.newSingleThreadExecutor()
Creates an Executor that uses a single worker thread operating off an
unbounded queue.
|
static TaskExecutorService |
TaskExecutors.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.
|
| Constructor and Description |
|---|
TaskExecutorCompletionService(TaskExecutorService executor) |
TaskExecutorCompletionService(TaskExecutorService executor,
BlockingQueue<Promise<V>> completionQueue) |
| Modifier and Type | Method and Description |
|---|---|
TaskExecutorService |
ContextTrampoline.bind(TaskExecutorService executorService) |
TaskExecutorService |
ContextTrampoline.bind(TaskExecutorService executorService,
ContextTrampoline.Propagation propagation) |
| Modifier and Type | Method and Description |
|---|---|
TaskExecutorService |
ContextTrampoline.bind(TaskExecutorService executorService) |
TaskExecutorService |
ContextTrampoline.bind(TaskExecutorService executorService,
ContextTrampoline.Propagation propagation) |
Copyright © 2021. All rights reserved.