|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.servingxml.io.cache.CacheEntry
public class CacheEntry
Implements an intrusive linked list entry for cache entries
Constructor Summary | |
---|---|
CacheEntry(java.lang.Object key,
java.lang.Object data,
Expirable expirable,
RevalidationType revalidationType,
CacheDictionary dictionary)
Creates a CacheEntry object |
Method Summary | |
---|---|
CacheDictionary |
getCacheDictionary()
|
int |
getCount()
Returns the hit count |
java.lang.Object |
getData()
|
Expirable |
getExpirable()
|
java.lang.Object |
getKey()
|
long |
getLastAccessed()
Returns the last accessed time (in milliseconds) |
CacheEntry |
getNext()
Gets the next entry in the list |
CacheEntry |
getPrev()
Gets the previous entry in the list |
RevalidationType |
getRevalidationType()
|
boolean |
hasExpired()
Invalidates the resource state |
void |
setNext(CacheEntry entry)
Sets the next entry in the list |
void |
setPrev(CacheEntry entry)
Sets the previous entry in the list |
void |
updateStatistics()
Updates the last accessed time and hit count |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheEntry(java.lang.Object key, java.lang.Object data, Expirable expirable, RevalidationType revalidationType, CacheDictionary dictionary)
CacheEntry
object
Method Detail |
---|
public CacheEntry getNext()
public CacheEntry getPrev()
public void setPrev(CacheEntry entry)
public void setNext(CacheEntry entry)
public java.lang.Object getKey()
public java.lang.Object getData()
public Expirable getExpirable()
public RevalidationType getRevalidationType()
public CacheDictionary getCacheDictionary()
public final void updateStatistics()
public final int getCount()
public final long getLastAccessed()
public boolean hasExpired()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |