Class AbstractConcurrentInitializer<T,E extends Exception>
java.lang.Object
org.apache.commons.lang3.concurrent.AbstractConcurrentInitializer<T,E>
- Type Parameters:
T- the type of the object managed by this initializer class.E- The exception type thrown byinitialize().
- All Implemented Interfaces:
ConcurrentInitializer<T>,FailableSupplier<T,ConcurrentException>
- Direct Known Subclasses:
AtomicInitializer,AtomicSafeInitializer,BackgroundInitializer,LazyInitializer
public abstract class AbstractConcurrentInitializer<T,E extends Exception>
extends Object
implements ConcurrentInitializer<T>
Abstracts and defines operations for ConcurrentInitializer implementations.
- Since:
- 3.14.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractConcurrentInitializer.AbstractBuilder<I extends AbstractConcurrentInitializer<T,E>, T, B extends AbstractConcurrentInitializer.AbstractBuilder<I, T, B, E>, E extends Exception> Builds a new instance for subclasses. -
Field Summary
Fields inherited from interface org.apache.commons.lang3.function.FailableSupplier
NUL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.lang3.function.FailableSupplier
get
-
Constructor Details
-
AbstractConcurrentInitializer
public AbstractConcurrentInitializer()Constructs a new instance.
-
-
Method Details
-
close
Calls the closer with the manager object.- Throws:
ConcurrentException- Thrown by the closer.- Since:
- 3.14.0
-