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.

Type 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 AbstractConcurrentInitializer.initialize().

Constructors

AbstractBuilder()

Constructs a new instance.

public AbstractBuilder()[source]

Constructs a new instance.

Methods

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().

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

Gets the closer consumer called by AbstractConcurrentInitializer.close().

Returns:

The closer consumer called by AbstractConcurrentInitializer.close().

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

Gets the initializer supplier called by AbstractConcurrentInitializer.initialize().

Returns:

The initializer supplier called by AbstractConcurrentInitializer.initialize().

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

Sets the closer consumer called by AbstractConcurrentInitializer.close().

Parameters:

closer – The consumer called by AbstractConcurrentInitializer.close().

Returns:

this instance.

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

Sets the initializer supplier called by AbstractConcurrentInitializer.initialize().

Parameters:

initializer – The supplier called by AbstractConcurrentInitializer.initialize().

Returns:

this instance.