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