| Modifier and Type | Method and Description |
|---|---|
static Executor |
create(Executor threadPool)
Creates an executor that uses the provided Java concurrent executor for the actual job processing
|
static Executor |
createCachedThreadPoolExecutor(ThreadFactory threadFactory)
Creates an executor that uses the
Executors.newCachedThreadPool(ThreadFactory). |
static Executor |
createFixedThreadPoolExecutor(int threads,
ThreadFactory threadFactory)
Creates an executor that uses the
Executors.newFixedThreadPool(int,ThreadFactory) |
public static Executor createCachedThreadPoolExecutor(ThreadFactory threadFactory)
Executors.newCachedThreadPool(ThreadFactory).threadFactory - The thread factory to use.public static Executor createFixedThreadPoolExecutor(int threads, ThreadFactory threadFactory)
Executors.newFixedThreadPool(int,ThreadFactory)threads - The amount of threads to allow in the thread poolthreadFactory - The thread factory to use.Copyright © 2015. All rights reserved.