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()
ICacheElement
getCacheName
in interface ICacheElement
ICacheElement.getCacheName()
public java.io.Serializable getKey()
ICacheElement
getKey
in interface ICacheElement
ICacheElement.getKey()
public java.io.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)
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.