public class NCachedValue<T> extends Object
| Constructor and Description |
|---|
NCachedValue(Supplier<T> callable,
long timeoutMilliSeconds) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastDate() |
T |
getLastValue() |
long |
getTimeoutMilliSeconds() |
T |
getValue() |
boolean |
isInvalid() |
boolean |
isValid() |
void |
setTimeoutMilliSeconds(long timeoutMilliSeconds) |
boolean |
tryUpdate() |
T |
update() |
void |
updateAsync() |
public long getTimeoutMilliSeconds()
public void setTimeoutMilliSeconds(long timeoutMilliSeconds)
public boolean isValid()
public boolean isInvalid()
public void updateAsync()
public T update()
public boolean tryUpdate()
public T getValue()
public T getLastValue()
public long getLastDate()
Copyright © 2025 vpc open source initiative. All rights reserved.