Package io.helidon.common.configurable
Class ServerThreadPoolSupplier
java.lang.Object
io.helidon.common.configurable.ServerThreadPoolSupplier
- All Implemented Interfaces:
Supplier<ExecutorService>
Supplier of a custom thread pool with defaults appropriate for a thread-per-request server.
The returned thread pool supports
Context propagation.-
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadPoolConfig.Builderbuilder()Create a new fluent API builder to build a thread pool supplier.static ThreadPoolSuppliercreate()Create a new thread pool supplier with default configuration.static ThreadPoolSupplierCreate supplier from configuration.get()
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<ExecutorService>
-
builder
Create a new fluent API builder to build a thread pool supplier.- Returns:
- a builder instance
-
create
Create a new thread pool supplier with default configuration.- Returns:
- a new thread pool supplier with default configuration
-
create
Create supplier from configuration.- Parameters:
config- config instance- Returns:
- a new thread pool supplier configured from config
-