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 Details

    • serialize

      void serialize(T o, DataOutput out) throws Exception
      Serializes an object
      Parameters:
      o - Object to serialize
      out - Serialization output target
      Throws:
      Exception
    • deserialize

      T deserialize(DataInput in) throws Exception
      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