public class SerializationConversionUtil extends Object
Constructor and Description |
---|
SerializationConversionUtil() |
Modifier and Type | Method and Description |
---|---|
static <K,V> ICacheElement<K,V> |
getDeSerializedCacheElement(ICacheElementSerialized<K,V> serialized,
IElementSerializer elementSerializer)
This returns a wrapper that has a de-serialized version of the value
instead of the serialized value.
|
static <K,V> ICacheElementSerialized<K,V> |
getSerializedCacheElement(ICacheElement<K,V> element,
IElementSerializer elementSerializer)
This returns a wrapper that has a serialized version of the value instead
of the value.
|
public SerializationConversionUtil()
public static <K,V> ICacheElementSerialized<K,V> getSerializedCacheElement(ICacheElement<K,V> element, IElementSerializer elementSerializer) throws IOException
element
- elementSerializer
- the serializer to be used.IOException
public static <K,V> ICacheElement<K,V> getDeSerializedCacheElement(ICacheElementSerialized<K,V> serialized, IElementSerializer elementSerializer) throws IOException, ClassNotFoundException
serialized
- elementSerializer
- the serializer to be used.IOException
ClassNotFoundException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.