Class PurgatoryElement<K,V> 
java.lang.Object
org.apache.commons.jcs3.engine.CacheElement<K,V>
 
org.apache.commons.jcs3.auxiliary.disk.PurgatoryElement<K,V> 
- All Implemented Interfaces:
- Serializable,- ICacheElement<K,- V> 
Implementation of cache elements in purgatory.
 Elements are stored in purgatory when they are spooled to the auxiliary cache, but have not yet
 been written to disk.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPurgatoryElement(ICacheElement<K, V> cacheElement) Constructor for the PurgatoryElement<K, V> object
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGet the wrapped cache element.Gets the cacheName attribute of the CacheElement objectGets the IElementAttributes attribute of the CacheElement objectgetKey()Gets the key attribute of the CacheElement objectgetVal()Gets the val attribute of the CacheElement objectinthashCode()booleanGets the spoolable property.voidSets the attributes attribute of the CacheElement objectvoidsetSpoolable(boolean spoolable) Sets the spoolable property.toString()For debugging only.
- 
Constructor Details- 
PurgatoryElementConstructor for the PurgatoryElement<K, V> object- Parameters:
- cacheElement- CacheElement
 
 
- 
- 
Method Details- 
isSpoolableGets the spoolable property.- Returns:
- The spoolable value
 
- 
setSpoolableSets the spoolable property.- Parameters:
- spoolable- The new spoolable value
 
- 
getCacheElementGet the wrapped cache element.- Returns:
- ICacheElement
 
- 
getCacheNameDescription copied from class:CacheElementGets the cacheName attribute of the CacheElement object- Specified by:
- getCacheNamein interface- ICacheElement<K,- V> 
- Overrides:
- getCacheNamein class- CacheElement<K,- V> 
- Returns:
- cacheElement.getCacheName();
- See Also:
 
- 
getKeyDescription copied from class:CacheElementGets the key attribute of the CacheElement object- Specified by:
- getKeyin interface- ICacheElement<K,- V> 
- Overrides:
- getKeyin class- CacheElement<K,- V> 
- Returns:
- cacheElement.getKey();
- See Also:
 
- 
getValDescription copied from class:CacheElementGets the val attribute of the CacheElement object- Specified by:
- getValin interface- ICacheElement<K,- V> 
- Overrides:
- getValin class- CacheElement<K,- V> 
- Returns:
- cacheElement.getVal();
- See Also:
 
- 
getElementAttributesDescription copied from class:CacheElementGets the IElementAttributes attribute of the CacheElement object- Specified by:
- getElementAttributesin interface- ICacheElement<K,- V> 
- Overrides:
- getElementAttributesin class- CacheElement<K,- V> 
- Returns:
- cacheElement.getElementAttributes();
- See Also:
 
- 
setElementAttributesDescription copied from class:CacheElementSets the attributes attribute of the CacheElement object- Specified by:
- setElementAttributesin interface- ICacheElement<K,- V> 
- Overrides:
- setElementAttributesin class- CacheElement<K,- V> 
- Parameters:
- attr-
- See Also:
 
- 
equals- Overrides:
- equalsin class- CacheElement<K,- V> 
- Parameters:
- obj- other object
- Returns:
- true if this object key equals the key of obj
 
- 
hashCode- Overrides:
- hashCodein class- CacheElement<K,- V> 
- Returns:
- a hash of the key only
 
- 
toStringDescription copied from class:CacheElementFor debugging only.- Overrides:
- toStringin class- CacheElement<K,- V> 
- Returns:
- debug string
 
 
-