Class AsyncConfig.Builder
java.lang.Object
io.helidon.faulttolerance.AsyncConfig.BuilderBase<AsyncConfig.Builder, AsyncConfig>
io.helidon.faulttolerance.AsyncConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<AsyncConfig.Builder, AsyncConfig>, Builder<AsyncConfig.Builder, Async>, ConfigBuilderSupport.ConfiguredBuilder<AsyncConfig.Builder, AsyncConfig>, Supplier<Async>
- Enclosing interface:
AsyncConfig
public static class AsyncConfig.Builder
extends AsyncConfig.BuilderBase<AsyncConfig.Builder, AsyncConfig>
implements Builder<AsyncConfig.Builder, Async>
Fluent API builder for
Async.-
Nested Class Summary
Nested classes/interfaces inherited from class AsyncConfig.BuilderBase
AsyncConfig.BuilderBase.AsyncConfigImplModifier 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 AsyncConfig.BuilderBase
clearExecutor, clearExecutorName, clearName, clearOnStart, config, config, executor, executor, executorName, executorName, from, from, name, name, onStart, onStart, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptionClear existing value of executor.Clear existing value of executorName.Clear existing value of name.Clear existing value of onStart.config()Configuration used to configure this instance.Update builder from configuration (node of this type).executor()Executor service.executor(ExecutorService executor) Executor service.Name of an executor service.executorName(String executorName) Name of an executor service.from(AsyncConfig prototype) Update this builder from an existing prototype instance.from(AsyncConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name for debugging, error reporting, monitoring.Name for debugging, error reporting, monitoring.onStart()A future that is completed when execution of the asynchronous task starts.onStart(CompletableFuture<Async> onStart) A future that is completed when execution of the asynchronous task starts.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Asyncget()default AsyncConfig.Builderidentity()Instance of this builder as the correct type.default AsyncConfig.Builderupdate(Consumer<AsyncConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault AsyncConfig.Builderself()Instance of this builder as the correct type.
-
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<AsyncConfig.Builder, AsyncConfig>- 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<AsyncConfig.Builder, Async>- Returns:
- instance of the built type
-