|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jcs.engine.ElementAttributes
Element attribute descriptor class.
| Field Summary | |
long |
createTime
The creation time |
java.util.ArrayList |
eventHandlers
The last access time |
long |
idle
Description of the Field |
boolean |
IS_DISTRIBUTE
Is this item distributable at all. |
boolean |
IS_ETERNAL
can turn off expiration |
boolean |
IS_LATERAL
Is this item laterally distributable |
boolean |
IS_REMOTE
Can this item be sent to the remote cache |
boolean |
IS_SPOOL
can this item be flushed to disk |
long |
lastAccessTime
The last access time |
long |
mls
Max life seconds |
int |
size
The byte size of teh field. |
long |
version
Description of the Field |
| Constructor Summary | |
|
ElementAttributes()
Constructor for the IElementAttributes object |
private |
ElementAttributes(ElementAttributes attr)
Constructor for the IElementAttributes object |
| Method Summary | |
void |
addElementEventHandler(IElementEventHandler eventHandler)
Adds a ElementEventHandler. |
java.lang.Object |
clone2()
Description of the Method |
IElementAttributes |
copy()
Description of the Method |
long |
getCreateTime()
Gets the createTime attribute of the IElementAttributes object |
java.util.ArrayList |
getElementEventHandlers()
Gets the elementEventHandlers. |
long |
getIdleTime()
Gets the idleTime attribute of the IElementAttributes object. |
boolean |
getIsDistribute()
Gets the {3} attribute of the IElementAttributes object |
boolean |
getIsEternal()
can turn off expiration |
boolean |
getIsLateral()
Is this item laterally distributable |
boolean |
getIsRemote()
Can this item be sent to the remote cache |
boolean |
getIsSpool()
can this item be flushed to disk |
long |
getLastAccessTime()
Gets the LastAccess attribute of the IAttributes object |
long |
getMaxLifeSeconds()
Gets the {3} attribute of the ElementAttributes object |
int |
getSize()
Gets the size attribute of the IElementAttributes object |
long |
getTimeToLiveSeconds()
If the returned value is negative, the item has expired |
long |
getVersion()
Gets the version attribute of the IElementAttributes object |
void |
setCreateTime()
Sets the createTime attribute of the IElementAttributes object |
void |
setIdleTime(long idle)
Sets the idleTime attribute of the IElementAttributes object |
void |
setIsDistribute(boolean val)
Sets the isDistribute attribute of the ElementAttributes object |
void |
setIsEternal(boolean val)
Sets the isEternal attribute of the ElementAttributes object |
void |
setIsLateral(boolean val)
Sets the isLateral attribute of the ElementAttributes object |
void |
setIsRemote(boolean val)
Sets the isRemote attribute of the ElementAttributes object |
void |
setIsSpool(boolean val)
Sets the isSpool attribute of the ElementAttributes object |
void |
setLastAccessTimeNow()
Sets the LastAccessTime as now of the IElementAttributes object |
void |
setMaxLifeSeconds(long mls)
Sets the maxLifeSeconds attribute of the IElementAttributes object |
void |
setSize(int size)
Size in bytes. |
void |
setVersion(long version)
Sets the version attribute of the IElementAttributes object |
java.lang.String |
toString()
For logging and debugging the element IElementAttributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public boolean IS_DISTRIBUTE
public boolean IS_SPOOL
public boolean IS_LATERAL
public boolean IS_REMOTE
public boolean IS_ETERNAL
public long version
public long mls
public long idle
public int size
public long createTime
public long lastAccessTime
public java.util.ArrayList eventHandlers
| Constructor Detail |
public ElementAttributes()
private ElementAttributes(ElementAttributes attr)
attr - | Method Detail |
public IElementAttributes copy()
copy in interface IElementAttributespublic java.lang.Object clone2()
public void setVersion(long version)
setVersion in interface IElementAttributesversion - The new version valuepublic void setMaxLifeSeconds(long mls)
setMaxLifeSeconds in interface IElementAttributesmls - The new {3} valuepublic long getMaxLifeSeconds()
getMaxLifeSeconds in interface IElementAttributespublic void setIdleTime(long idle)
setIdleTime in interface IElementAttributesidle - The new idleTime valuepublic void setSize(int size)
setSize in interface IElementAttributessize - The new size valuepublic int getSize()
getSize in interface IElementAttributespublic long getCreateTime()
getCreateTime in interface IElementAttributespublic void setCreateTime()
public long getVersion()
getVersion in interface IElementAttributespublic long getIdleTime()
getIdleTime in interface IElementAttributespublic long getTimeToLiveSeconds()
getTimeToLiveSeconds in interface IElementAttributespublic long getLastAccessTime()
getLastAccessTime in interface IElementAttributespublic void setLastAccessTimeNow()
setLastAccessTimeNow in interface IElementAttributespublic boolean getIsDistribute()
getIsDistribute in interface IElementAttributespublic void setIsDistribute(boolean val)
setIsDistribute in interface IElementAttributesval - The new isDistribute valuepublic boolean getIsSpool()
getIsSpool in interface IElementAttributespublic void setIsSpool(boolean val)
setIsSpool in interface IElementAttributesval - The new isSpool valuepublic boolean getIsLateral()
getIsLateral in interface IElementAttributespublic void setIsLateral(boolean val)
setIsLateral in interface IElementAttributesval - The new isLateral valuepublic boolean getIsRemote()
getIsRemote in interface IElementAttributespublic void setIsRemote(boolean val)
setIsRemote in interface IElementAttributesval - The new isRemote valuepublic boolean getIsEternal()
getIsEternal in interface IElementAttributespublic void setIsEternal(boolean val)
setIsEternal in interface IElementAttributesval - The new isEternal valuepublic void addElementEventHandler(IElementEventHandler eventHandler)
addElementEventHandler in interface IElementAttributeseventHandler - The ElementEventHandler to be added to the list.public java.util.ArrayList getElementEventHandlers()
getElementEventHandlers in interface IElementAttributespublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||