public class CachedValue<T> extends Object
| Constructor and Description |
|---|
CachedValue(Supplier<T> callable,
long timeoutSeconds) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastDate() |
T |
getLastValue() |
long |
getTimeoutSeconds() |
T |
getValue() |
boolean |
isInvalid() |
boolean |
isValid() |
void |
setTimeoutSeconds(long timeoutSeconds) |
boolean |
tryUpdate() |
T |
update() |
void |
updateAsync() |
public long getTimeoutSeconds()
public void setTimeoutSeconds(long timeoutSeconds)
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 © 2021 vpc open source initiative. All rights reserved.