|
||||||||||
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 ICacheElementSerialized 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 ICacheElement
getCacheName
in interface ICacheElementSerialized
public java.io.Serializable getKey()
ICacheElementSerialized
getKey
in interface ICacheElement
getKey
in interface ICacheElementSerialized
public byte[] getSerializedValue()
ICacheElementSerialized
getSerializedValue
in interface ICacheElementSerialized
public IElementAttributes getElementAttributes()
ICacheElementSerialized
getElementAttributes
in interface ICacheElement
getElementAttributes
in interface ICacheElementSerialized
public void setElementAttributes(IElementAttributes attr)
ICacheElementSerialized
setElementAttributes
in interface ICacheElement
setElementAttributes
in interface ICacheElementSerialized
attr
- public java.io.Serializable getVal()
getVal
in interface ICacheElement
public 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 |