Class Async.Builder

    • Method Detail

      • build

        public Async build()
        Description copied from interface: Builder
        Build the instance from this builder.
        Specified by:
        build in interface 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