Uses of Interface
org.apache.commons.lang3.concurrent.ConcurrentInitializer
-
Packages that use ConcurrentInitializer Package Description org.apache.commons.lang3.concurrent Provides support classes for multi-threaded programming. -
-
Uses of ConcurrentInitializer in org.apache.commons.lang3.concurrent
Classes in org.apache.commons.lang3.concurrent that implement ConcurrentInitializer Modifier and Type Class Description class
AtomicInitializer<T>
A specialized implementation of theConcurrentInitializer
interface based on anAtomicReference
variable.class
AtomicSafeInitializer<T>
A specializedConcurrentInitializer
implementation which is similar toAtomicInitializer
, but ensures that theAtomicSafeInitializer.initialize()
method is called only once.class
BackgroundInitializer<T>
A class that allows complex initialization operations in a background task.class
CallableBackgroundInitializer<T>
A specializedBackgroundInitializer
implementation that wraps aCallable
object.class
ConstantInitializer<T>
A very simple implementation of theConcurrentInitializer
interface which always returns the same object.class
LazyInitializer<T>
This class provides a generic implementation of the lazy initialization pattern.class
MultiBackgroundInitializer
A specializedBackgroundInitializer
implementation that can deal with multiple background initialization tasks.Methods in org.apache.commons.lang3.concurrent with parameters of type ConcurrentInitializer Modifier and Type Method Description static <K,V>
VConcurrentUtils. createIfAbsent(java.util.concurrent.ConcurrentMap<K,V> map, K key, ConcurrentInitializer<V> init)
Checks if a concurrent map contains a key and creates a corresponding value if not.static <K,V>
VConcurrentUtils. createIfAbsentUnchecked(java.util.concurrent.ConcurrentMap<K,V> map, K key, ConcurrentInitializer<V> init)
Checks if a concurrent map contains a key and creates a corresponding value if not, suppressing checked exceptions.static <T> T
ConcurrentUtils. initialize(ConcurrentInitializer<T> initializer)
Invokes the specifiedConcurrentInitializer
and returns the object produced by the initializer.static <T> T
ConcurrentUtils. initializeUnchecked(ConcurrentInitializer<T> initializer)
Invokes the specifiedConcurrentInitializer
and transforms occurring exceptions to runtime exceptions.
-