|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.metadata.impl.BlockMetaData
public class BlockMetaData
| Constructor Summary | |
|---|---|
BlockMetaData(IndexData indexData,
SimpleMetaData metaData)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlockMetaData(IndexData indexData,
SimpleMetaData metaData)
| Method Detail |
|---|
public boolean isExpired()
MetaData
isExpired in interface MetaDatapublic boolean isIdledAway()
MetaData
isIdledAway in interface MetaDatapublic long getExpiry()
MetaData
getExpiry in interface MetaDatapublic long getMaxIdleTime()
MetaData
getMaxIdleTime in interface MetaDatapublic void update()
MetaData
update in interface MetaDatapublic long getHitCount()
MetaData
getHitCount in interface MetaDatapublic long getLastAccess()
MetaData
getLastAccess in interface MetaDatapublic long getCreated()
MetaData
getCreated in interface MetaDatapublic SimpleMetaData getMetaData()
public IndexData getIndexData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||