Uses of Interface
org.apache.commons.lang3.concurrent.ConcurrentInitializer
Package
Description
Provides support classes for multi-threaded programming.
-
Uses of ConcurrentInitializer in org.apache.commons.lang3.concurrent
Modifier and TypeClassDescriptionclass
AbstractConcurrentInitializer<T,
E extends Exception> Abstracts and defines operations forConcurrentInitializer
implementations.class
A specialized implementation of theConcurrentInitializer
interface based on anAtomicReference
variable.class
A specializedConcurrentInitializer
implementation which is similar toAtomicInitializer
, but ensures that theAbstractConcurrentInitializer.initialize()
method is called only once.class
A class that allows complex initialization operations in a background task.class
A specializedBackgroundInitializer
implementation that wraps aCallable
object.class
A very simple implementation of theConcurrentInitializer
interface which always returns the same object.class
This class provides a generic implementation of the lazy initialization pattern.class
A specializedBackgroundInitializer
implementation that can deal with multiple background initialization tasks.Modifier and TypeMethodDescriptionstatic <K,
V> V ConcurrentUtils.createIfAbsent
(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> V ConcurrentUtils.createIfAbsentUnchecked
(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.