public class PurgatoryElement extends java.lang.Object implements ICacheElement, java.io.Serializable
Elements are stored in purgatory when they are spooled to the auxilliary cache, but have not yet been written to disk.
| Modifier and Type | Field and Description |
|---|---|
protected ICacheElement |
cacheElement
Wrapped cache Element
|
protected boolean |
spoolable
Is the element ready to be spooled?
|
| Constructor and Description |
|---|
PurgatoryElement(ICacheElement cacheElement)
Constructor for the PurgatoryElement object
|
| Modifier and Type | Method and Description |
|---|---|
ICacheElement |
getCacheElement()
Get the wrapped cache element.
|
java.lang.String |
getCacheName()
Gets the cacheName attribute of the ICacheElement object.
|
IElementAttributes |
getElementAttributes()
Gets the attributes attribute of the ICacheElement object
|
java.io.Serializable |
getKey()
Gets the key attribute of the ICacheElement object
|
java.io.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.
|
protected boolean spoolable
protected ICacheElement cacheElement
public PurgatoryElement(ICacheElement cacheElement)
cacheElement - CacheElement to wrap.public boolean isSpoolable()
public void setSpoolable(boolean spoolable)
spoolable - The new spoolable valuepublic ICacheElement getCacheElement()
public java.lang.String getCacheName()
ICacheElementgetCacheName in interface ICacheElementICacheElement.getCacheName()public java.io.Serializable getKey()
ICacheElementgetKey in interface ICacheElementICacheElement.getKey()public java.io.Serializable getVal()
ICacheElementgetVal in interface ICacheElementICacheElement.getVal()public IElementAttributes getElementAttributes()
ICacheElementgetElementAttributes in interface ICacheElementICacheElement.getElementAttributes()public void setElementAttributes(IElementAttributes attr)
ICacheElementsetElementAttributes in interface ICacheElementattr - ICacheElement.setElementAttributes(org.apache.jcs.engine.behavior.IElementAttributes)Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.