Class AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>,T,B extends AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends java.lang.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 java.lang.Exception>
public abstract static class AbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>,T,B extends AbstractConcurrentInitializer.AbstractBuilder<I,T,B,E>,E extends java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FailableConsumer<T,? extends java.lang.Exception>getCloser()Gets the closer consumer called byAbstractConcurrentInitializer.close().FailableSupplier<T,? extends java.lang.Exception>getInitializer()Gets the initializer supplier called byAbstractConcurrentInitializer.initialize().BsetCloser(FailableConsumer<T,? extends java.lang.Exception> closer)Sets the closer consumer called byAbstractConcurrentInitializer.close().BsetInitializer(FailableSupplier<T,? extends java.lang.Exception> initializer)Sets the initializer supplier called byAbstractConcurrentInitializer.initialize().-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.lang3.function.FailableSupplier
get
-
-
-
-
Method Detail
-
getCloser
public FailableConsumer<T,? extends java.lang.Exception> getCloser()
Gets the closer consumer called byAbstractConcurrentInitializer.close().- Returns:
- the closer consumer called by
AbstractConcurrentInitializer.close().
-
getInitializer
public FailableSupplier<T,? extends java.lang.Exception> getInitializer()
Gets the initializer supplier called byAbstractConcurrentInitializer.initialize().- Returns:
- the initializer supplier called by
AbstractConcurrentInitializer.initialize().
-
setCloser
public B setCloser(FailableConsumer<T,? extends java.lang.Exception> closer)
Sets the closer consumer called byAbstractConcurrentInitializer.close().- Parameters:
closer- the consumer called byAbstractConcurrentInitializer.close().- Returns:
- this
-
setInitializer
public B setInitializer(FailableSupplier<T,? extends java.lang.Exception> initializer)
Sets the initializer supplier called byAbstractConcurrentInitializer.initialize().- Parameters:
initializer- the supplier called byAbstractConcurrentInitializer.initialize().- Returns:
- this
-
-