|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.disk.PurgatoryElement<K,V>
public class PurgatoryElement<K extends Serializable,V extends Serializable>
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<K,V> |
cacheElement
Wrapped cache Element |
protected boolean |
spoolable
Is the element ready to be spooled? |
| Constructor Summary | |
|---|---|
PurgatoryElement(ICacheElement<K,V> cacheElement)
Constructor for the PurgatoryElement |
|
| Method Summary | |
|---|---|
ICacheElement<K,V> |
getCacheElement()
Get the wrapped cache element. |
String |
getCacheName()
Gets the cacheName attribute of the ICacheElement |
IElementAttributes |
getElementAttributes()
Gets the attributes attribute of the ICacheElement |
K |
getKey()
Gets the key attribute of the ICacheElement |
V |
getVal()
Gets the val attribute of the ICacheElement |
boolean |
isSpoolable()
Gets the spoolable property. |
void |
setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the ICacheElement |
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<K extends Serializable,V extends Serializable> cacheElement
| Constructor Detail |
|---|
public PurgatoryElement(ICacheElement<K,V> cacheElement)
cacheElement - CacheElement to wrap.| Method Detail |
|---|
public boolean isSpoolable()
public void setSpoolable(boolean spoolable)
spoolable - The new spoolable valuepublic ICacheElement<K,V> getCacheElement()
public String getCacheName()
ICacheElement
getCacheName in interface ICacheElement<K extends Serializable,V extends Serializable>ICacheElement.getCacheName()public K getKey()
ICacheElement
getKey in interface ICacheElement<K extends Serializable,V extends Serializable>ICacheElement.getKey()public V getVal()
ICacheElement
getVal in interface ICacheElement<K extends Serializable,V extends Serializable>ICacheElement.getVal()public IElementAttributes getElementAttributes()
ICacheElement
getElementAttributes in interface ICacheElement<K extends Serializable,V extends Serializable>ICacheElement.getElementAttributes()public void setElementAttributes(IElementAttributes attr)
ICacheElement
setElementAttributes in interface ICacheElement<K extends Serializable,V extends Serializable>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 | |||||||||