On this page

AbstractConcurrentInitializer.AbstractBuilder

public abstract static class org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T, E>, T, B extends AbstractConcurrentInitializer.AbstractBuilder<I, T, B, E>, E extends Exception> extends AbstractSupplier<I, B, E>[source]

Builds a new instance for subclasses.

Parameters:
  • <I> – The type of results supplied by this builder.

  • <T> – The type of the object managed by the initializer class.

  • <B> – The type of builder.

  • <E> – The exception type thrown by #initialize().

Constructors

AbstractBuilder()

Constructs a new instance.

public AbstractBuilder()[source]

Constructs a new instance.

Methods

getCloser()

Gets the closer consumer called by #close().

getInitializer()

Gets the initializer supplier called by #initialize().

setCloser(FailableConsumer)

Sets the closer consumer called by #close().

setInitializer(FailableSupplier)

Sets the initializer supplier called by #initialize().

public FailableConsumer<T, ? extends Exception> getCloser()[source]

Gets the closer consumer called by #close().

Returns:

The closer consumer called by #close().

public FailableSupplier<T, ? extends Exception> getInitializer()[source]

Gets the initializer supplier called by #initialize().

Returns:

The initializer supplier called by #initialize().

public B setCloser(FailableConsumer<T, ? extends Exception> closer)[source]

Sets the closer consumer called by #close().

Parameters:

closer – The consumer called by #close().

Returns:

this instance.

public B setInitializer(FailableSupplier<T, ? extends Exception> initializer)[source]

Sets the initializer supplier called by #initialize().

Parameters:

initializer – The supplier called by #initialize().

Returns:

this instance.