Class Async.Builder

java.lang.Object
io.helidon.faulttolerance.Async.Builder
All Implemented Interfaces:
Builder<Async.Builder,Async>, Supplier<Async>
Enclosing interface:
Async

public static class Async.Builder extends Object implements Builder<Async.Builder,Async>
Fluent API Builder for Async.
  • Method Details

    • build

      public Async build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<Async.Builder,Async>
      Returns:
      instance of the built type
    • executor

      public Async.Builder executor(Supplier<? extends ExecutorService> executor)
      Configure executor service to use for executing tasks asynchronously.
      Parameters:
      executor - executor service supplier
      Returns:
      updated builder instance
    • executor

      public Async.Builder executor(ExecutorService executor)
      Configure executor service to use for executing tasks asynchronously.
      Parameters:
      executor - executor service
      Returns:
      updated builder instance