|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Inteface for cache element attributes classes.
Method Summary | |
void |
addElementEventHandler(IElementEventHandler eventHandler)
Adds a ElementEventHandler. |
IElementAttributes |
copy()
Returns a copy of the object. |
long |
getCreateTime()
Gets the createTime attribute of the IAttributes object |
java.util.ArrayList |
getElementEventHandlers()
Gets the elementEventHandlers. |
long |
getIdleTime()
Gets the idleTime attribute of the IAttributes 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()
Sets the maxLife attribute of the IAttributes object |
int |
getSize()
Gets the size attribute of the IAttributes object |
long |
getTimeToLiveSeconds()
Gets the time left to live of the IAttributes object |
long |
getVersion()
Gets the version attribute of the IAttributes object |
void |
setIdleTime(long idle)
Sets the idleTime attribute of the IAttributes object |
void |
setIsDistribute(boolean val)
Sets the isDistribute attribute of the IElementAttributes object |
void |
setIsEternal(boolean val)
Sets the isEternal attribute of the IElementAttributes object |
void |
setIsLateral(boolean val)
Sets the isLateral attribute of the IElementAttributes object |
void |
setIsRemote(boolean val)
Sets the isRemote attribute of the IElementAttributes object |
void |
setIsSpool(boolean val)
Sets the isSpool attribute of the IElementAttributes object |
void |
setLastAccessTimeNow()
Sets the LastAccessTime as now of the IElementAttributes object |
void |
setMaxLifeSeconds(long mls)
Sets the maxLife attribute of the IAttributes object |
void |
setSize(int size)
Size in bytes. |
void |
setVersion(long version)
Sets the version attribute of the IAttributes object |
Method Detail |
public void setVersion(long version)
version
- The new version valuepublic void setMaxLifeSeconds(long mls)
mls
- The new {3} valuepublic long getMaxLifeSeconds()
public void setIdleTime(long idle)
idle
- The new idleTime valuepublic void setSize(int size)
size
- The new size valuepublic int getSize()
public long getCreateTime()
public long getLastAccessTime()
public void setLastAccessTimeNow()
public long getVersion()
public long getIdleTime()
public long getTimeToLiveSeconds()
public IElementAttributes copy()
public boolean getIsDistribute()
public void setIsDistribute(boolean val)
val
- The new isDistribute valuepublic boolean getIsSpool()
public void setIsSpool(boolean val)
val
- The new isSpool valuepublic boolean getIsLateral()
public void setIsLateral(boolean val)
val
- The new isLateral valuepublic boolean getIsRemote()
public void setIsRemote(boolean val)
val
- The new isRemote valuepublic boolean getIsEternal()
public void setIsEternal(boolean val)
val
- The new isEternal valuepublic void addElementEventHandler(IElementEventHandler eventHandler)
eventHandler
- The feature to be added to the ElementEventHandlerpublic java.util.ArrayList getElementEventHandlers()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |