| Package | Description | 
|---|---|
| org.apache.commons.lang3.concurrent | Provides support classes for multi-threaded programming. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AtomicInitializer<T>
 A specialized implementation of the  ConcurrentInitializerinterface
 based on anAtomicReferencevariable. | 
| class  | AtomicSafeInitializer<T>
 A specialized  ConcurrentInitializerimplementation 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 specialized  BackgroundInitializerimplementation that wraps aCallableobject. | 
| class  | ConstantInitializer<T>
 A very simple implementation of the  ConcurrentInitializerinterface
 which always returns the same object. | 
| class  | LazyInitializer<T>
 This class provides a generic implementation of the lazy initialization
 pattern. | 
| class  | MultiBackgroundInitializer
 A specialized  BackgroundInitializerimplementation that can deal with
 multiple background initialization tasks. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <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 specified  ConcurrentInitializerand returns the
 object produced by the initializer. | 
| static <T> T | ConcurrentUtils. initializeUnchecked(ConcurrentInitializer<T> initializer)Invokes the specified  ConcurrentInitializerand transforms
 occurring exceptions to runtime exceptions. | 
Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.