public final class ThreadPoolSupplier extends Object implements Supplier<ExecutorService>
| Modifier and Type | Class and Description |
|---|---|
static class |
ThreadPoolSupplier.Builder
A fluent API builder for
ThreadPoolSupplier. |
| Modifier and Type | Method and Description |
|---|---|
static ThreadPoolSupplier.Builder |
builder()
Create a new fluent API builder to build thread pool supplier.
|
static ThreadPoolSupplier |
create()
Create a new thread pool supplier with default configuration.
|
static ThreadPoolSupplier |
create(Config config)
Load supplier from configuration.
|
ThreadPoolExecutor |
get() |
public static ThreadPoolSupplier.Builder builder()
public static ThreadPoolSupplier create(Config config)
config - config instancepublic static ThreadPoolSupplier create()
public ThreadPoolExecutor get()
get in interface Supplier<ExecutorService>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.