Class LazyLoadableValue<T>

java.lang.Object
org.apache.pulsar.common.util.LazyLoadableValue<T>

public class LazyLoadableValue<T> extends Object
Used to lazy load a value, only calculate it when used. Not thread-safety.
  • Constructor Details

    • LazyLoadableValue

      public LazyLoadableValue(Supplier<T> loader)
  • Method Details

    • getValue

      public T getValue()