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
Constructs a new instance. |
Methods
Gets the closer consumer called by |
|
Gets the initializer supplier called by |
|
Sets the closer consumer called by |
|
Sets the initializer supplier called by |
- 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:
thisinstance.
- public B setInitializer(FailableSupplier<T, ? extends Exception> initializer)[source]
Sets the initializer supplier called by
#initialize().- Parameters:
initializer – The supplier called by
#initialize().- Returns:
thisinstance.