public static final class ScheduledThreadPoolSupplier.Builder extends Object implements Builder<ScheduledThreadPoolSupplier>
ScheduledThreadPoolSupplier.| Modifier and Type | Method and Description |
|---|---|
ScheduledThreadPoolSupplier |
build()
Build the instance from this builder.
|
ScheduledThreadPoolSupplier.Builder |
config(Config config)
Load all properties for this thread pool executor from configuration.
|
ScheduledThreadPoolSupplier.Builder |
corePoolSize(int corePoolSize)
Core pool size of the thread pool executor.
|
ScheduledThreadPoolSupplier.Builder |
daemon(boolean daemon)
Is daemon of the thread pool executor.
|
ScheduledThreadPoolSupplier.Builder |
prestart(boolean prestart)
Whether to prestart core threads in this thread pool executor.
|
ScheduledThreadPoolSupplier.Builder |
threadNamePrefix(String threadNamePrefix)
Name prefix for threads in this thread pool executor.
|
public ScheduledThreadPoolSupplier build()
Builderbuild in interface Builder<ScheduledThreadPoolSupplier>public ScheduledThreadPoolSupplier.Builder corePoolSize(int corePoolSize)
corePoolSize - see ThreadPoolExecutor.getCorePoolSize()public ScheduledThreadPoolSupplier.Builder daemon(boolean daemon)
daemon - whether the threads are daemon threadspublic ScheduledThreadPoolSupplier.Builder threadNamePrefix(String threadNamePrefix)
threadNamePrefix - prefix of a thread namepublic ScheduledThreadPoolSupplier.Builder prestart(boolean prestart)
prestart - whether to prestart the threadspublic ScheduledThreadPoolSupplier.Builder config(Config config)
config - config located on the key of executor-serviceCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.