public class CallableSafeInitializer<T> extends Object
A safe and lazy and removable initializer implementation that wraps a
Callable object.
org.apache.commons.lang3.concurrent.AtomicSafeInitializer| Constructor and Description |
|---|
CallableSafeInitializer(Callable<T> callable) |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Get (and initialize, if not initialized yet) the required object
|
T |
remove() |
T |
remove(Consumer<? super T> action) |
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.