| Package | Description |
|---|---|
| org.apache.commons.lang3.concurrent |
Provides support classes for multi-threaded programming.
|
| Modifier and Type | Method and Description |
|---|---|
static ConcurrentException |
ConcurrentUtils.extractCause(ExecutionException ex)
Inspects the cause of the specified
ExecutionException and
creates a ConcurrentException with the checked cause if
necessary. |
ConcurrentException |
MultiBackgroundInitializer.MultiBackgroundInitializerResults.getException(String name)
Gets the
ConcurrentException object that was thrown by the
BackgroundInitializer with the given name. |
protected ConcurrentException |
LazyInitializer.getTypedException(Exception e)
Gets an Exception with a type of E as defined by a concrete subclass of this class.
|
protected ConcurrentException |
AtomicSafeInitializer.getTypedException(Exception e)
Gets an Exception with a type of E as defined by a concrete subclass of this class.
|
protected ConcurrentException |
AtomicInitializer.getTypedException(Exception e)
Gets an Exception with a type of E as defined by a concrete subclass of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MultiBackgroundInitializer.close()
Calls the closer of all child
BackgroundInitializer objects |
void |
AbstractConcurrentInitializer.close()
Calls the closer with the manager object.
|
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.
|
T |
LazyInitializer.get()
Gets the object wrapped by this instance.
|
T |
ConstantInitializer.get()
Gets the object managed by this initializer.
|
T |
BackgroundInitializer.get()
Gets the result of the background initialization.
|
T |
AtomicSafeInitializer.get()
Gets (and initialize, if not initialized yet) the required object
|
T |
AtomicInitializer.get()
Gets the object managed by this initializer.
|
static void |
ConcurrentUtils.handleCause(ExecutionException ex)
Handles the specified
ExecutionException. |
static <T> T |
ConcurrentUtils.initialize(ConcurrentInitializer<T> initializer)
Invokes the specified
ConcurrentInitializer and returns the
object produced by the initializer. |
Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.