java.lang.Object
io.helidon.nima.faulttolerance.Async.Builder
- All Implemented Interfaces:
Builder<Async.Builder,,Async> Supplier<Async>
- Enclosing interface:
Async
Fluent API Builder for
Async.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.executor(ExecutorService executor) Configure executor service to use for executing tasks asynchronously.executor(Supplier<? extends ExecutorService> executor) Configure executor service to use for executing tasks asynchronously.onStart(CompletableFuture<Async> onStart) Configure future that shall be completed when async task starts.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<Async.Builder,Async> - Returns:
- instance of the built type
-
executor
Configure executor service to use for executing tasks asynchronously.- Parameters:
executor- executor service supplier- Returns:
- updated builder instance
-
executor
Configure executor service to use for executing tasks asynchronously.- Parameters:
executor- executor service- Returns:
- updated builder instance
-
onStart
Configure future that shall be completed when async task starts.- Parameters:
onStart- future completed when async task starts- Returns:
- updated builder instance
-