Package io.helidon.common.configurable
Class ServerThreadPoolSupplier
- java.lang.Object
- 
- io.helidon.common.configurable.ServerThreadPoolSupplier
 
- 
- All Implemented Interfaces:
- Supplier<ExecutorService>
 
 public final class ServerThreadPoolSupplier extends Object implements Supplier<ExecutorService> Supplier of a custom thread pool with defaults appropriate for a thread-per-request server. The returned thread pool supportsContextpropagation.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ThreadPoolSupplier.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(Config config)Create supplier from configuration.ExecutorServiceget()
 
- 
- 
- 
Method Detail- 
getpublic ExecutorService get() - Specified by:
- getin interface- Supplier<ExecutorService>
 
 - 
builderpublic static ThreadPoolSupplier.Builder builder() Create a new fluent API builder to build a thread pool supplier.- Returns:
- a builder instance
 
 - 
createpublic static ThreadPoolSupplier create() Create a new thread pool supplier with default configuration.- Returns:
- a new thread pool supplier with default configuration
 
 - 
createpublic static ThreadPoolSupplier create(Config config) Create supplier from configuration.- Parameters:
- config- config instance
- Returns:
- a new thread pool supplier configured from config
 
 
- 
 
-