Package org.apache.commons.jcs3.engine
Class CacheElementSerialized<K,V>
java.lang.Object
org.apache.commons.jcs3.engine.CacheElement<K,V>
org.apache.commons.jcs3.engine.CacheElementSerialized<K,V>
- All Implemented Interfaces:
Serializable
,ICacheElement<K,
,V> ICacheElementSerialized<K,
V>
public class CacheElementSerialized<K,V>
extends CacheElement<K,V>
implements ICacheElementSerialized<K,V>
Either serialized value or the value should be null;
- See Also:
-
Constructor Summary
ConstructorDescriptionCacheElementSerialized
(String cacheNameArg, K keyArg, byte[] serializedValueArg, IElementAttributes elementAttributesArg) Constructs a usable wrapper. -
Method Summary
Modifier and TypeMethodDescriptionboolean
byte[]
Gets the value attribute of the ICacheElementSerialized object.toString()
For debugging only.Methods inherited from class org.apache.commons.jcs3.engine.CacheElement
getCacheName, getElementAttributes, getKey, getVal, hashCode, setElementAttributes
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheElement
getCacheName, getElementAttributes, getKey, getVal, setElementAttributes
-
Constructor Details
-
CacheElementSerialized
public CacheElementSerialized(String cacheNameArg, K keyArg, byte[] serializedValueArg, IElementAttributes elementAttributesArg) Constructs a usable wrapper.- Parameters:
cacheNameArg
-keyArg
-serializedValueArg
-elementAttributesArg
-
-
-
Method Details
-
getSerializedValue
Description copied from interface:ICacheElementSerialized
Gets the value attribute of the ICacheElementSerialized object. This is the value the client cached serialized by some mechanism.- Specified by:
getSerializedValue
in interfaceICacheElementSerialized<K,
V> - Returns:
- byte[]
-
equals
- Overrides:
equals
in classCacheElement<K,
V> - Parameters:
obj
- other object- Returns:
- true if this object key equals the key of obj
-
toString
For debugging only.- Overrides:
toString
in classCacheElement<K,
V> - Returns:
- debugging string.
-