Package org.apache.commons.lang3.concurrent

# Class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T>

java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<I,BackgroundInitializer.Builder<I,T>,Exception>
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I,T,BackgroundInitializer.Builder<I,T>,Exception>
org.apache.commons.lang3.concurrent.BackgroundInitializer.Builder<I,T>

Type Parameters:
  `I` - the type of the initializer managed by this builder.
  `T` - the type of the object managed by the initializer.

All Implemented Interfaces:
  `FailableSupplier<I,Exception>`

Enclosing class:
  `BackgroundInitializer<T>`

public static class BackgroundInitializer.Builder<I extends BackgroundInitializer<T>,T> extends AbstractConcurrentInitializer.AbstractBuilder<I,T,BackgroundInitializer.Builder<I,T>,Exception>
Builds a new instance.

Since:
  3.14.0

- ## Field Summary

  ### Fields inherited from interface org.apache.commons.lang3.function.FailableSupplier

  `NUL`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `I`
  `get()`
  Supplies an object
  `BackgroundInitializer.Builder<I,T>`
  `setExternalExecutor(ExecutorService externalExecutor)`
  Sets the external executor service for executing tasks.

  ### Methods inherited from class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder

  `getCloser, getInitializer, setCloser, setInitializer`

  ### Methods inherited from class org.apache.commons.lang3.builder.AbstractSupplier

  `asThis`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### get

    public I get()
    Description copied from interface: `FailableSupplier`
    Supplies an object
    Returns:
      a result

  - ### setExternalExecutor

    public BackgroundInitializer.Builder<I,T> setExternalExecutor(ExecutorService externalExecutor)
    Sets the external executor service for executing tasks. null is an permitted value.
    Parameters:
      `externalExecutor` - the `ExecutorService` to be used.
    Returns:
      this
    See Also:
      - `BackgroundInitializer.setExternalExecutor(ExecutorService)`