Class ScheduledThreadPoolConfig.Builder
java.lang.Object
io.helidon.common.configurable.ScheduledThreadPoolConfig.BuilderBase<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolConfig>
io.helidon.common.configurable.ScheduledThreadPoolConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolConfig>, Builder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolSupplier>, ConfigBuilderSupport.ConfiguredBuilder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolConfig>, Supplier<ScheduledThreadPoolSupplier>
- Enclosing interface:
ScheduledThreadPoolConfig
public static class ScheduledThreadPoolConfig.Builder
extends ScheduledThreadPoolConfig.BuilderBase<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolConfig>
implements Builder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolSupplier>
Fluent API builder for
ScheduledThreadPoolSupplier.-
Nested Class Summary
Nested classes/interfaces inherited from class ScheduledThreadPoolConfig.BuilderBase
ScheduledThreadPoolConfig.BuilderBase.ScheduledThreadPoolConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class ScheduledThreadPoolConfig.BuilderBase
config, config, corePoolSize, corePoolSize, daemon, daemon, from, from, preBuildPrototype, prestart, prestart, threadNamePrefix, threadNamePrefix, toString, validatePrototype, virtualThreads, virtualThreadsModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Update builder from configuration (node of this type).intCore pool size of the thread pool executor.corePoolSize(int corePoolSize) Core pool size of the thread pool executor.booleandaemon()Is daemon of the thread pool executor.daemon(boolean daemon) Is daemon of the thread pool executor.from(ScheduledThreadPoolConfig prototype) Update this builder from an existing prototype instance.from(ScheduledThreadPoolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.booleanprestart()Whether to prestart core threads in this thread pool executor.prestart(boolean prestart) Whether to prestart core threads in this thread pool executor.Name prefix for threads in this thread pool executor.threadNamePrefix(String threadNamePrefix) Name prefix for threads in this thread pool executor.toString()protected voidValidates required properties.booleanWhen configured totrue, an unbounded virtual executor service (project Loom) will be used.virtualThreads(boolean virtualThreads) When configured totrue, an unbounded virtual executor service (project Loom) will be used.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault ScheduledThreadPoolSupplierget()identity()Instance of this builder as the correct type.update(Consumer<ScheduledThreadPoolConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
self
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<ScheduledThreadPoolConfig.Builder, ScheduledThreadPoolSupplier>- Returns:
- instance of the built type
-