public final class ThreadPoolSupplier
extends java.lang.Object
implements java.util.function.Supplier<java.util.concurrent.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.
|
java.util.concurrent.ThreadPoolExecutor |
get() |
public static ThreadPoolSupplier.Builder builder()
public static ThreadPoolSupplier create(Config config)
config - config instancepublic static ThreadPoolSupplier create()
public java.util.concurrent.ThreadPoolExecutor get()
get in interface java.util.function.Supplier<java.util.concurrent.ExecutorService>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.