public class BlockMetaData extends Object implements MetaData
| Constructor and Description |
|---|
BlockMetaData(IndexData indexData,
SimpleMetaData metaData) |
| 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.
|
IndexData |
getIndexData() |
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).
|
SimpleMetaData |
getMetaData() |
boolean |
isExpired()
Check if the entry is expired.
|
boolean |
isIdledAway()
Check if the entry has not been accessed within the idle period.
|
void |
update()
Update the entry after a cache hit.
|
public BlockMetaData(IndexData indexData, SimpleMetaData metaData)
public boolean isExpired()
MetaDatapublic boolean isIdledAway()
MetaDataisIdledAway in interface MetaDatapublic long getExpiry()
MetaDatapublic long getMaxIdleTime()
MetaDatagetMaxIdleTime in interface MetaDatapublic void update()
MetaDatapublic int getHitCount()
MetaDatagetHitCount in interface MetaDatapublic long getLastAccess()
MetaDatagetLastAccess in interface MetaDatapublic long getCreated()
MetaDatagetCreated in interface MetaDatapublic void decay()
MetaDatapublic SimpleMetaData getMetaData()
public IndexData getIndexData()
Copyright © 2013 dontdrinkandroot. All Rights Reserved.