Interface DistributedPolicy.CacheEntry<K,V>
-
- Type Parameters:
K
- the key type of the cacheV
- the value type of the cache
- Enclosing interface:
- DistributedPolicy<K,V>
public static interface DistributedPolicy.CacheEntry<K,V>
Interface representing a cache entry containing key and value along with some metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description org.bson.types.ObjectId
getId()
Get the id of the cache entry.K
getKey()
Get the key of the cache entry.String
getStatus()
Get the status of the cache entryDate
getTouched()
Get the touched date of the cache entry.V
getValue()
Get the value of the cache entry.default boolean
wasEvicted()
Indicates whether the cache entry was evicted or not.
-
-
-
Method Detail
-
getId
org.bson.types.ObjectId getId()
Get the id of the cache entry.- Returns:
- the id
-
getKey
K getKey()
Get the key of the cache entry.- Returns:
- the key
-
getValue
V getValue()
Get the value of the cache entry.- Returns:
- the value
-
getStatus
String getStatus()
Get the status of the cache entry- Returns:
- the status
-
getTouched
Date getTouched()
Get the touched date of the cache entry.- Returns:
- the touched date
-
wasEvicted
default boolean wasEvicted()
Indicates whether the cache entry was evicted or not.- Returns:
true
if the cache entry was evicted, otherwisefalse
-
-