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