|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.io.CacheEntry
The CacheEntry
represents an entry of a file in the
disk cache.
Field Summary | |
protected java.lang.Object |
content
The file content. |
protected long |
last_used
The last used time. |
protected java.lang.String |
path
The file path. |
protected int |
update_count
The update count. |
Constructor Summary | |
CacheEntry(java.lang.String path,
java.lang.Object content)
Constructs a CacheEntry . |
Method Summary | |
java.lang.Object |
getContent()
Gets the content. |
long |
getLastUsedTimeMillis()
Gets the last used time in milli seconds. |
java.lang.String |
getPath()
Gets the file path. |
int |
getUpdateCount()
Gets the update count. |
boolean |
isUpdated()
Returns true when the entry is updated. |
void |
resetUpdateCount()
Resets the update count. |
void |
update(java.lang.Object new_content)
Updates the file content. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.lang.String path
protected java.lang.Object content
protected int update_count
protected long last_used
Constructor Detail |
public CacheEntry(java.lang.String path, java.lang.Object content)
CacheEntry
.path
- the file path.content
- the file content.Method Detail |
public java.lang.String getPath()
public java.lang.Object getContent()
public long getLastUsedTimeMillis()
public boolean isUpdated()
public int getUpdateCount()
public void resetUpdateCount()
public void update(java.lang.Object new_content)
new_content
- the new file content.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |