Package org.apache.commons.lang3.concurrent

# Class AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>,T,B extends AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends Exception>

java.lang.Object
org.apache.commons.lang3.builder.AbstractSupplier<I,B,E>
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>

Type Parameters:
  `I` - the type of the initializer class.
  `T` - the type of the object managed by the initializer class.
  `B` - the type of builder.
  `E` - The exception type thrown by `AbstractConcurrentInitializer.initialize()`.

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

Direct Known Subclasses:
  `AtomicInitializer.Builder`, `AtomicSafeInitializer.Builder`, `BackgroundInitializer.Builder`, `LazyInitializer.Builder`

Enclosing class:
  `AbstractConcurrentInitializer<T,E extends Exception>`

public abstract static class AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>,T,B extends AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends Exception> extends AbstractSupplier<I,B,E>
Builds a new instance for subclasses.

- ## Field Summary

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

  `NUL`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `FailableConsumer<T,? extends Exception>`
  `getCloser()`
  Gets the closer consumer called by `AbstractConcurrentInitializer.close()`.
  `FailableSupplier<T,? extends Exception>`
  `getInitializer()`
  Gets the initializer supplier called by `AbstractConcurrentInitializer.initialize()`.
  `B`
  `setCloser(FailableConsumer<T,? extends Exception> closer)`
  Sets the closer consumer called by `AbstractConcurrentInitializer.close()`.
  `B`
  `setInitializer(FailableSupplier<T,? extends Exception> initializer)`
  Sets the initializer supplier called by `AbstractConcurrentInitializer.initialize()`.

  ### 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`

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

  `get`

- ## Constructor Details

  - ### AbstractBuilder

    public AbstractBuilder()

- ## Method Details

  - ### getCloser

    public FailableConsumer<T,? extends Exception> getCloser()
    Gets the closer consumer called by `AbstractConcurrentInitializer.close()`.
    Returns:
      the closer consumer called by `AbstractConcurrentInitializer.close()`.

  - ### getInitializer

    public FailableSupplier<T,? extends Exception> getInitializer()
    Gets the initializer supplier called by `AbstractConcurrentInitializer.initialize()`.
    Returns:
      the initializer supplier called by `AbstractConcurrentInitializer.initialize()`.

  - ### setCloser

    public B setCloser(FailableConsumer<T,? extends Exception> closer)
    Sets the closer consumer called by `AbstractConcurrentInitializer.close()`.
    Parameters:
      `closer` - the consumer called by `AbstractConcurrentInitializer.close()`.
    Returns:
      this

  - ### setInitializer

    public B setInitializer(FailableSupplier<T,? extends Exception> initializer)
    Sets the initializer supplier called by `AbstractConcurrentInitializer.initialize()`.
    Parameters:
      `initializer` - the supplier called by `AbstractConcurrentInitializer.initialize()`.
    Returns:
      this