Class TtlCache.CachedValue<V>
java.lang.Object
com.activeviam.tech.core.internal.cache.TtlCache.CachedValue<V>
- Type Parameters:
V
- the type of the value
Adds timestamp information to the cached values.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static <V> TtlCache.CachedValue
<V> invalid
(long time) Create an invalid cached value.static <V> TtlCache.CachedValue
<V> temporary
(long time) Create a temporary CachedValue, with the #beingCreated flag set to true.toString()
-
Method Details
-
invalid
Create an invalid cached value.- Type Parameters:
V
- the contained type.- Parameters:
time
- the prescribed creation time- Returns:
- the invalid cached value.
-
temporary
Create a temporary CachedValue, with the #beingCreated flag set to true. A temporary value is always invalid.- Type Parameters:
V
- The contained type.- Parameters:
time
- the prescribed creation time- Returns:
- a temporary cached value.
-
hashCode
public int hashCode() -
equals
-
toString
-