|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.PurgatoryElement
public class PurgatoryElement
Wrapper for cache elements in purgatory.
Elements are stored in purgatory when they are spooled to the auxilliary cache, but have not yet been written to disk.
Field Summary | |
---|---|
protected ICacheElement |
cacheElement
Wrapped cache Element |
protected boolean |
spoolable
Is the element ready to be spooled? |
Constructor Summary | |
---|---|
PurgatoryElement(ICacheElement cacheElement)
Constructor for the PurgatoryElement object |
Method Summary | |
---|---|
ICacheElement |
getCacheElement()
Get the wrapped cache element. |
String |
getCacheName()
Gets the cacheName attribute of the ICacheElement object. |
IElementAttributes |
getElementAttributes()
Gets the attributes attribute of the ICacheElement object |
Serializable |
getKey()
Gets the key attribute of the ICacheElement object |
Serializable |
getVal()
Gets the val attribute of the ICacheElement object |
boolean |
isSpoolable()
Gets the spoolable property. |
void |
setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the ICacheElement object |
void |
setSpoolable(boolean spoolable)
Sets the spoolable property. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean spoolable
protected ICacheElement cacheElement
Constructor Detail |
---|
public PurgatoryElement(ICacheElement cacheElement)
cacheElement
- CacheElement to wrap.Method Detail |
---|
public boolean isSpoolable()
public void setSpoolable(boolean spoolable)
spoolable
- The new spoolable valuepublic ICacheElement getCacheElement()
public String getCacheName()
ICacheElement
getCacheName
in interface ICacheElement
ICacheElement.getCacheName()
public Serializable getKey()
ICacheElement
getKey
in interface ICacheElement
ICacheElement.getKey()
public Serializable getVal()
ICacheElement
getVal
in interface ICacheElement
ICacheElement.getVal()
public IElementAttributes getElementAttributes()
ICacheElement
getElementAttributes
in interface ICacheElement
ICacheElement.getElementAttributes()
public void setElementAttributes(IElementAttributes attr)
ICacheElement
setElementAttributes
in interface ICacheElement
attr
- ICacheElement.setElementAttributes(org.apache.jcs.engine.behavior.IElementAttributes)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |