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
ConstructorsConstructorDescriptionCacheElementSerialized(String cacheNameArg, K keyArg, byte[] serializedValueArg, IElementAttributes elementAttributesArg) Constructs a usable wrapper. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]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, setElementAttributesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:ICacheElementSerializedGets the value attribute of the ICacheElementSerialized object. This is the value the client cached serialized by some mechanism.- Specified by:
getSerializedValuein interfaceICacheElementSerialized<K,V> - Returns:
- byte[]
-
equals
- Overrides:
equalsin classCacheElement<K,V> - Parameters:
obj- other object- Returns:
- true if this object key equals the key of obj
-
toString
For debugging only.- Overrides:
toStringin classCacheElement<K,V> - Returns:
- debugging string.
-