|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.engine.Attributes
Element attribute descriptor class.
Field Summary | |
long |
createTime
Description of the Field |
long |
default_ttl
Description of the Field |
long |
idle
Description of the Field |
boolean |
IS_DISTRIBUTE
Can this be send over a lateral or remote service. |
boolean |
IS_ETERNAL
Is the attribute above the max life law. |
boolean |
IS_LATERAL
Can the element be set laterally |
boolean |
IS_REMOTE
Description of the Field |
boolean |
IS_SPOOL
Can the element be spooled to disk. |
long |
lastAccess
Description of the Field |
int |
size
Description of the Field |
long |
ttl
Description of the Field |
long |
version
Description of the Field |
Constructor Summary | |
|
Attributes()
Set the create time. |
protected |
Attributes(Attributes attr)
Constructor for the Attributes object |
Method Summary | |
java.lang.Object |
clone2()
Deep clone |
Attributes |
copy()
clone |
long |
getCreateTime()
Gets the createTime attribute of the Attributes object |
long |
getIdleTime()
Gets the idleTime attribute of the Attributes object |
int |
getSize()
Gets the size attribute of the Attributes object |
long |
getTimeToLive()
Gets the timeToLive attribute of the Attributes object. |
long |
getVersion()
Gets the version attribute of the Attributes object |
void |
setCreateTime()
Sets the createTime attribute of the Attributes object |
void |
setIdleTime(long idle)
Sets the idleTime attribute of the Attributes object |
void |
setSize(int size)
Size in bytes. |
void |
setTimeToLive(long ttl)
Sets the timeToLive attribute of the Attributes object |
void |
setVersion(long version)
Sets the version attribute of the Attributes object |
java.lang.String |
toString()
|
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_LATERAL
public boolean IS_SPOOL
public boolean IS_REMOTE
public boolean IS_ETERNAL
public long version
public long ttl
public long default_ttl
public long idle
public long lastAccess
public int size
public long createTime
Constructor Detail |
public Attributes()
protected Attributes(Attributes attr)
attr
- Method Detail |
public Attributes copy()
public java.lang.Object clone2()
public void setVersion(long version)
setVersion
in interface IAttributes
version
- The new version valuepublic void setTimeToLive(long ttl)
setTimeToLive
in interface IAttributes
ttl
- The new timeToLive valuepublic void setIdleTime(long idle)
setIdleTime
in interface IAttributes
idle
- The new idleTime valuepublic void setSize(int size)
setSize
in interface IAttributes
size
- The new size valuepublic int getSize()
getSize
in interface IAttributes
public long getCreateTime()
getCreateTime
in interface IAttributes
public void setCreateTime()
public long getVersion()
getVersion
in interface IAttributes
public long getIdleTime()
getIdleTime
in interface IAttributes
public long getTimeToLive()
getTimeToLive
in interface IAttributes
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |