| 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) |
static Executor |
getDefault()
Get the default thread executor.
|
public static Executor getDefault()
createCachedThreadPoolExecutor(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, Peter Nerg Apache License v2.0