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:
T- the type of the object managed by the initializer class.I- the type of the initializer class.B- the type of builder.E- The exception type thrown byAbstractConcurrentInitializer.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 -
Method Summary
Modifier and TypeMethodDescriptionFailableConsumer<T,? extends Exception> Gets the closer consumer called byAbstractConcurrentInitializer.close().FailableSupplier<T,? extends Exception> Gets the initializer supplier called byAbstractConcurrentInitializer.initialize().setCloser(FailableConsumer<T, ? extends Exception> closer) Sets the closer consumer called byAbstractConcurrentInitializer.close().setInitializer(FailableSupplier<T, ? extends Exception> initializer) Sets the initializer supplier called byAbstractConcurrentInitializer.initialize().Methods inherited from class org.apache.commons.lang3.builder.AbstractSupplier
asThisMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.lang3.function.FailableSupplier
get
-
Constructor Details
-
AbstractBuilder
public AbstractBuilder()Constructs a new instance.
-
-
Method Details
-
getCloser
Gets the closer consumer called byAbstractConcurrentInitializer.close().- Returns:
- the closer consumer called by
AbstractConcurrentInitializer.close().
-
getInitializer
Gets the initializer supplier called byAbstractConcurrentInitializer.initialize().- Returns:
- the initializer supplier called by
AbstractConcurrentInitializer.initialize().
-
setCloser
Sets the closer consumer called byAbstractConcurrentInitializer.close().- Parameters:
closer- the consumer called byAbstractConcurrentInitializer.close().- Returns:
thisinstance.
-
setInitializer
Sets the initializer supplier called byAbstractConcurrentInitializer.initialize().- Parameters:
initializer- the supplier called byAbstractConcurrentInitializer.initialize().- Returns:
thisinstance.
-