Uses of Interface
org.apache.commons.lang3.concurrent.ConcurrentInitializer
Packages that use ConcurrentInitializer
Package
Description
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 ConcurrentInitializerModifier and TypeClassDescriptionclassA specialized implementation of theConcurrentInitializerinterface based on anAtomicReferencevariable.classA specializedConcurrentInitializerimplementation which is similar toAtomicInitializer, but ensures that theAtomicSafeInitializer.initialize()method is called only once.classA class that allows complex initialization operations in a background task.classA specializedBackgroundInitializerimplementation that wraps aCallableobject.classA very simple implementation of theConcurrentInitializerinterface which always returns the same object.classThis class provides a generic implementation of the lazy initialization pattern.classA specializedBackgroundInitializerimplementation that can deal with multiple background initialization tasks.Methods in org.apache.commons.lang3.concurrent with parameters of type ConcurrentInitializerModifier 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> TConcurrentUtils.initialize(ConcurrentInitializer<T> initializer) Invokes the specifiedConcurrentInitializerand returns the object produced by the initializer.static <T> TConcurrentUtils.initializeUnchecked(ConcurrentInitializer<T> initializer) Invokes the specifiedConcurrentInitializerand transforms occurring exceptions to runtime exceptions.