|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.engine.CacheElementSerialized
public class CacheElementSerialized
Either serialized value or the value should be null;
| Constructor Summary | |
|---|---|
CacheElementSerialized(java.lang.String cacheNameArg,
java.io.Serializable keyArg,
byte[] serializedValueArg,
IElementAttributes elementAttributesArg)
Constructs a usable wrapper. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCacheName()
Returns the name of the cache. |
IElementAttributes |
getElementAttributes()
Gets the attributes attribute of the ICacheElement object |
java.io.Serializable |
getKey()
Gets the key attribute of the ICacheElement object |
byte[] |
getSerializedValue()
Gets the value attribute of the ICacheElementSerialized object. |
java.io.Serializable |
getVal()
Backward compatibility. |
void |
setElementAttributes(IElementAttributes attr)
Sets the attributes attribute of the ICacheElement object |
java.lang.String |
toString()
For debugging only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CacheElementSerialized(java.lang.String cacheNameArg,
java.io.Serializable keyArg,
byte[] serializedValueArg,
IElementAttributes elementAttributesArg)
cacheNameArg - keyArg - serializedValueArg - elementAttributesArg - | Method Detail |
|---|
public java.lang.String getCacheName()
getCacheName in interface ICacheElementgetCacheName in interface ICacheElementSerializedpublic java.io.Serializable getKey()
ICacheElement
getKey in interface ICacheElementgetKey in interface ICacheElementSerializedpublic byte[] getSerializedValue()
ICacheElementSerialized
getSerializedValue in interface ICacheElementSerializedpublic IElementAttributes getElementAttributes()
ICacheElement
getElementAttributes in interface ICacheElementgetElementAttributes in interface ICacheElementSerializedpublic void setElementAttributes(IElementAttributes attr)
ICacheElement
setElementAttributes in interface ICacheElementsetElementAttributes in interface ICacheElementSerializedattr - The new attributes valuepublic java.io.Serializable getVal()
getVal in interface ICacheElementpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||