|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.DefaultElementEvictionData
public class DefaultElementEvictionData
Default implementation of the element eviction data storage that just keeps all the data in instance fields in the heap.
| Constructor Summary | |
|---|---|
DefaultElementEvictionData(long creationTime)
Default constructor initializing the field to their empty values |
|
DefaultElementEvictionData(long creationTime,
long lastAccessTime)
Constructor allowing custom values for the data fields. |
|
| Method Summary | |
|---|---|
boolean |
canParticipateInSerialization()
Indicates whether the data of this element eviction instance can participate in serialization of the element as a whole. |
ElementEvictionData |
clone()
Creates a clone of the eviction data |
long |
getCreationTime()
Get the element's creation time. |
long |
getLastAccessTime()
Gets the last access time. |
void |
resetLastAccessTime(Element element)
Resets the last access time. |
void |
setCreationTime(long creationTime)
Sets the element creation time. |
void |
updateLastAccessTime(long time,
Element element)
Updates the last access time. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultElementEvictionData(long creationTime)
public DefaultElementEvictionData(long creationTime,
long lastAccessTime)
lastAccessTime - | Method Detail |
|---|
public void setCreationTime(long creationTime)
setCreationTime in interface ElementEvictionDatacreationTime - the new element's creation timepublic long getCreationTime()
getCreationTime in interface ElementEvictionDatapublic long getLastAccessTime()
Element will have a last
access time equal to its create time.
getLastAccessTime in interface ElementEvictionData
public void updateLastAccessTime(long time,
Element element)
updateLastAccessTime in interface ElementEvictionDatatime - the new last access timeelement - the element for which the last access time is setpublic void resetLastAccessTime(Element element)
resetLastAccessTime in interface ElementEvictionDataelement - the element for which the last access time is set
public final ElementEvictionData clone()
throws java.lang.CloneNotSupportedException
clone in interface ElementEvictionDataclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean canParticipateInSerialization()
canParticipateInSerialization in interface ElementEvictionDatatrue when the data can participate in serialization; or
false otherwise
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||