Class CachedValue<T>

java.lang.Object
net.thevpc.netbeans.launcher.ui.utils.CachedValue<T>

public class CachedValue<T> extends Object
Author:
thevpc
  • Constructor Details

    • CachedValue

      public CachedValue(Supplier<T> callable, long timeoutSeconds)
  • Method Details

    • getTimeoutSeconds

      public long getTimeoutSeconds()
    • setTimeoutSeconds

      public void setTimeoutSeconds(long timeoutSeconds)
    • isValid

      public boolean isValid()
    • isInvalid

      public boolean isInvalid()
    • updateAsync

      public void updateAsync()
    • update

      public void update()
    • tryUpdate

      public boolean tryUpdate()
    • getValue

      public T getValue()
    • getLastValue

      public T getLastValue()
    • getLastDate

      public long getLastDate()