Package com.rpl.rama
Interface RamaCustomSerialization<T>
- Type Parameters:
T- Type of serialized objects
public interface RamaCustomSerialization<T>
Interface for implementing serialization for custom types. Custom serializers are configured
for usage on a module's instance config and configured on clients when opening a
RamaClusterManager. Custom serializers are automatically used on network or disk
boundaries.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(DataInput in) Deserialize objectvoidserialize(T o, DataOutput out) Serializes an objectBase type targetted by this serializer.
-
Method Details
-
serialize
Serializes an object- Parameters:
o- Object to serializeout- Serialization output target- Throws:
Exception
-
deserialize
Deserialize object- Parameters:
in- Source of binary data- Returns:
- Deserialized object
- Throws:
Exception
-
targetType
Class targetType()Base type targetted by this serializer. All types descending from this type will use this serializer.- Returns:
- Target type
-