|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fjank.jcache.persistence.PurgatoryElement
Wrapper for cache elements in purgatory. Elements are stored in purgatory when they are spooled to the disk cache, but have not yet been written to disk.
Constructor Summary | |
PurgatoryElement(CacheObject cacheElement)
Creates a new PurgatoryElement object. |
Method Summary | |
Attributes |
getAttributes()
gets the attributes for the wrapped element |
CacheObject |
getCacheElement()
gets the wrapped element |
java.io.Serializable |
getKey()
gets the key |
java.lang.String |
getName()
gets the name |
byte[] |
getVal()
gets the wrapped element |
boolean |
isSpoolable()
returns a boolean indicating wether this element is spoolable or not. |
void |
setAttributes(Attributes attr)
sets the attributes for the wrapped element |
void |
setSpoolable(boolean spoolable)
sets wether this element is spoolable or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PurgatoryElement(CacheObject cacheElement) throws DiskCacheException
cacheElement
- the cachelement to wrap.
DiskCacheException
CacheNotAvailableException
Method Detail |
public boolean isSpoolable()
public void setSpoolable(boolean spoolable)
spoolable
- wether this element is spoolable or not.public CacheObject getCacheElement()
public java.lang.String getName()
public java.io.Serializable getKey()
public byte[] getVal()
public Attributes getAttributes()
public void setAttributes(Attributes attr)
attr
- the attributes for the wrapped element
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |