public interface MetaData extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
decay()
Decreases the hitcount for use with LRU based expunge strategies.
|
long |
getCreated()
Get the timestamp when the entry was created.
|
long |
getExpiry()
Get the timestamp when the entry expires.
|
int |
getHitCount()
Get the number of hits.
|
long |
getLastAccess()
Get the timestamp when the entry was last accessed.
|
long |
getMaxIdleTime()
Get the maximum time that the entry may idle (not being accessed) before being evicted (in
milliseconds).
|
long |
getTimeToLive()
Gets the time to live of this entry (in milliseconds).
|
boolean |
isExpired()
Check if the entry is expired.
|
boolean |
isStale()
Check if the entry has not been accessed within the idle period.
|
void |
update()
Update the entry after a cache hit.
|
boolean isExpired()
boolean isStale()
long getExpiry()
long getMaxIdleTime()
void update()
int getHitCount()
long getLastAccess()
long getCreated()
void decay()
long getTimeToLive()
Copyright © 2014 dontdrinkandroot. All rights reserved.