|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.cache.metadata.impl.SimpleMetaData
public class SimpleMetaData
| Constructor Summary | |
|---|---|
SimpleMetaData(long expiry)
|
|
SimpleMetaData(long created,
long expiry)
|
|
SimpleMetaData(long created,
long expiry,
long maxIdleTime)
|
|
| 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. |
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). |
void |
increaseCount()
|
boolean |
isExpired()
Check if the entry is expired. |
boolean |
isIdledAway()
Check if the entry has not been accessed within the idle period. |
void |
resetCount()
|
void |
setCount(int count)
|
void |
setLastAccess(long lastAccess)
|
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 SimpleMetaData(long expiry)
public SimpleMetaData(long created,
long expiry)
public SimpleMetaData(long created,
long expiry,
long maxIdleTime)
| Method Detail |
|---|
public final long getExpiry()
MetaData
getExpiry in interface MetaDatapublic final void update()
MetaData
update in interface MetaDatapublic final long getLastAccess()
MetaData
getLastAccess in interface MetaDatapublic final long getHitCount()
MetaData
getHitCount in interface MetaDatapublic boolean isExpired()
MetaData
isExpired in interface MetaDatapublic long getCreated()
MetaData
getCreated in interface MetaDatapublic boolean isIdledAway()
MetaData
isIdledAway in interface MetaDatapublic long getMaxIdleTime()
MetaData
getMaxIdleTime in interface MetaDatapublic final void setCount(int count)
public final void setLastAccess(long lastAccess)
public final void resetCount()
public final void increaseCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||