V - The value typepublic interface TCacheHolder<V> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
V |
get()
Returns the value, that this holder holds.
|
long |
getCreationTime()
Returns the creation time of this holder, given in ms since EPOCH.
|
long |
getExpirationTime()
Returns the expiration time, given in ms since EPOCH.
|
long |
getLastAccessTime()
Returns the last access time, given in MILLISECONDS since EPOCH
|
int |
getUseCount()
Returns the number of times this holder was accessed.
|
boolean |
isInvalid()
Returns whether this holder is valid.
|
V |
peek()
Returns the value, that this holder holds.
|
V get()
V peek()
get() in that peek has no side effects on entry statistics.long getLastAccessTime()
int getUseCount()
long getCreationTime()
long getExpirationTime()
boolean isInvalid()
Copyright © 2018 trivago. All rights reserved.