Class CachedValue<T>


  • public class CachedValue<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CachedValue​(long timeoutMs, java.util.function.Supplier<T> supplier)  
    • Method Summary

      Modifier and Type Method Description
      T get()  
      void unset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedValue

        public CachedValue​(long timeoutMs,
                           java.util.function.Supplier<T> supplier)
    • Method Detail

      • unset

        public void unset()
      • get

        public T get()