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.Builder
builder()
Create a new fluent API builder to build a thread pool supplier.static ThreadPoolSupplier
create()
Create a new thread pool supplier with default configuration.static ThreadPoolSupplier
Create supplier from configuration.get()
-
Method Details
-
get
- Specified by:
get
in 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
-