public class BlockMetaData extends Object implements MetaData
| Constructor and Description |
|---|
BlockMetaData(IndexData indexData,
SimpleMetaData metaData) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreated()
Get the timestamp when the entry was created.
|
long |
getExpiry()
Get the timestamp when the entry expires.
|
long |
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 long getHitCount()
MetaDatagetHitCount in interface MetaDatapublic long getLastAccess()
MetaDatagetLastAccess in interface MetaDatapublic long getCreated()
MetaDatagetCreated in interface MetaDatapublic SimpleMetaData getMetaData()
public IndexData getIndexData()
Copyright © 2012. All Rights Reserved.