Package org.apache.pulsar.common.util
Class LazyLoadableValue<T>
- java.lang.Object
-
- org.apache.pulsar.common.util.LazyLoadableValue<T>
-
public class LazyLoadableValue<T> extends java.lang.ObjectUsed to lazy load a value, only calculate it when used. Not thread-safety.
-
-
Constructor Summary
Constructors Constructor Description LazyLoadableValue(java.util.function.Supplier<T> loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetValue()
-