V - the value typepublic static interface Store.ValueHolder<V>
extends java.util.function.Supplier<V>
| Modifier and Type | Field and Description | 
|---|---|
| static long | NO_EXPIREConstant value indicating no expiration - an eternal mapping. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | creationTime()Accessor to the creation time of this ValueHolder | 
| long | expirationTime()Accessor to the expiration time of this ValueHolder | 
| V | get()Returns the value held by this value holder. | 
| long | getId()The combination of this identifier and the  keythat ValueHolder is mapped to should to be
 unique at a given time. | 
| boolean | isExpired(long expirationTime)Check if the ValueHolder is expired relative to the specified time | 
| long | lastAccessTime()Accessor to the last access time of the Value held in this ValueHolder | 
static final long NO_EXPIRE
long creationTime()
long expirationTime()
NO_EXPIRE means that the ValueHolder will never expire.boolean isExpired(long expirationTime)
expirationTime - the expiration time (in ms) relative to which the expiry check must be madelong lastAccessTime()
long getId()
key that ValueHolder is mapped to should to be
 unique at a given time.