Package io.helidon.common.configurable
Class ScheduledThreadPoolSupplier
- java.lang.Object
-
- io.helidon.common.configurable.ScheduledThreadPoolSupplier
-
- All Implemented Interfaces:
Supplier<ExecutorService>
public final class ScheduledThreadPoolSupplier extends Object implements Supplier<ExecutorService>
Supplier of a custom scheduled thread pool. The returned thread pool supportsContextpropagation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduledThreadPoolSupplier.BuilderA fluent API builder forScheduledThreadPoolSupplier.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScheduledThreadPoolSupplier.Builderbuilder()Create a new fluent API builder to build thread pool supplier.static ScheduledThreadPoolSuppliercreate()Create a new thread pool supplier with default configuration.static ScheduledThreadPoolSuppliercreate(Config config)Load supplier from configuration.ScheduledExecutorServiceget()
-
-
-
Method Detail
-
builder
public static ScheduledThreadPoolSupplier.Builder builder()
Create a new fluent API builder to build thread pool supplier.- Returns:
- a builder instance
-
create
public static ScheduledThreadPoolSupplier create(Config config)
Load supplier from configuration.- Parameters:
config- config instance- Returns:
- a new thread pool supplier configured from config
-
create
public static ScheduledThreadPoolSupplier create()
Create a new thread pool supplier with default configuration.- Returns:
- a new thread pool supplier with default configuration
-
get
public ScheduledExecutorService get()
- Specified by:
getin interfaceSupplier<ExecutorService>
-
-